public class EventId
extends java.lang.Object
Constructor and Description |
---|
EventId(ParticipantId participantId,
long sequenceNumber)
Creates a unique Id based on participant
and sequence number.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static java.lang.String |
formatSequenceNumber(long value) |
java.util.UUID |
getAsUUID() |
ParticipantId |
getParticipantId()
Returns the id of the participant that sent the event.
|
long |
getSequenceNumber()
Returns the sequence number which makes this id unique combined with the
sending participants id.
|
int |
hashCode() |
java.lang.String |
toString() |
public EventId(ParticipantId participantId, long sequenceNumber)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.UUID getAsUUID()
public ParticipantId getParticipantId()
public long getSequenceNumber()
getParticipantId()
public static java.lang.String formatSequenceNumber(long value)
public java.lang.String toString()
toString
in class java.lang.Object