open class Id<out VALUE : Any>
Represents a unique, timestamped id.
value
- unique value of the id.
entityType
- optional id entity type.
timestamp
- timestamp for the id.
<init> |
Represents a unique, timestamped id. Id(value: VALUE, entityType: String?, timestamp: Instant) |
entityType |
optional id entity type. val entityType: String? |
timestamp |
timestamp for the id. val timestamp: Instant |
value |
unique value of the id. val value: VALUE |
equals |
fun equals(other: Any?): Boolean |
hashCode |
fun hashCode(): Int |
toString |
fun toString(): String |
newInstance |
Creates an id using Instant.now as timestamp. fun <V : Any> newInstance(value: V, entityType: String? = null, timestamp: Instant = now()): Id<V> |