Package me.ahoo.cosid.cosid
Class CosIdState
java.lang.Object
me.ahoo.cosid.cosid.CosIdState
- All Implemented Interfaces:
Comparable<CosIdState>
CosId State.
The CosIdState
is a composite of timestamp, machineId, and sequence.
-
Constructor Details
-
CosIdState
public CosIdState(long timestamp, int machineId, int sequence)
-
-
Method Details
-
getTimestamp
public long getTimestamp() -
getMachineId
public int getMachineId() -
getSequence
public int getSequence() -
compareTo
- Specified by:
compareTo
in interfaceComparable<CosIdState>
-
equals
-
hashCode
public int hashCode() -
toString
-