IndexedEntityModel

interface IndexedEntityModel : PenicillinModel

A entity model that has "indices" property.

Functions

Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean

Indicates whether some other model is "equal to" this one.

Link copied to clipboard
abstract override fun hashCode(): Int

Returns a hash code value for the model.

Link copied to clipboard
abstract override fun toString(): String

Returns a string representation of the model.

Properties

Link copied to clipboard
abstract val client: ApiClient

The ApiClient instance.

Link copied to clipboard
abstract val indices: List<Int>

The entity indices. Its size must be 2.

Link copied to clipboard
abstract override val json: JsonObject

The underlying JsonObject.

Link copied to clipboard
open val keyCase: JsonKeyCase
Link copied to clipboard
open val keyConverter: JsonKeyConverter

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
val IndexedEntityModel.firstIndex: Int

Returns the first index of the indices.

Link copied to clipboard
val IndexedEntityModel.lastIndex: Int

Returns the last index of this indices.

Link copied to clipboard
val IndexedEntityModel.range: IntRange

Returns a range from firstIndex value up to but excluding lastIndex value.

Link copied to clipboard
val IndexedEntityModel.size: Int

Returns the size of the indices.