public class Id<VALUE>
Represents a unique, timestamped id.
Modifier and Type | Class and Description |
---|---|
static class |
Id.Companion |
Modifier and Type | Field and Description |
---|---|
static Id.Companion |
Companion |
Constructor and Description |
---|
Id(VALUE value,
java.lang.String entityType,
java.time.Instant timestamp)
Represents a unique, timestamped id.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getEntityType()
optional id entity type.
|
java.time.Instant |
getTimestamp()
timestamp for the id.
|
VALUE |
getValue()
unique value of the id.
|
int |
hashCode() |
java.lang.String |
toString() |
public static Id.Companion Companion
public Id(VALUE value, java.lang.String entityType, java.time.Instant timestamp)
Represents a unique, timestamped id.
value
- unique value of the id.entityType
- optional id entity type.timestamp
- timestamp for the id.value
- unique value of the id.entityType
- optional id entity type.timestamp
- timestamp for the id.public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String toString()
public VALUE getValue()
unique value of the id.
public java.lang.String getEntityType()
optional id entity type.
public java.time.Instant getTimestamp()
timestamp for the id.