Package io.atomix.utils.time
Class VectorTimestamp<T extends Identifier>
- java.lang.Object
-
- io.atomix.utils.time.LogicalTimestamp
-
- io.atomix.utils.time.VectorTimestamp<T>
-
- All Implemented Interfaces:
Timestamp,Comparable<Timestamp>
public class VectorTimestamp<T extends Identifier> extends LogicalTimestamp
Vector clock timestamp.
-
-
Constructor Summary
Constructors Constructor Description VectorTimestamp(T identifier, long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Timestamp o)booleanequals(Object obj)inthashCode()Tidentifier()Returns the timestamp identifier.StringtoString()-
Methods inherited from class io.atomix.utils.time.LogicalTimestamp
asVersion, of, value
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.atomix.utils.time.Timestamp
isNewerThan, isOlderThan
-
-
-
-
Constructor Detail
-
VectorTimestamp
public VectorTimestamp(T identifier, long value)
-
-
Method Detail
-
identifier
public T identifier()
Returns the timestamp identifier.- Returns:
- the timestamp identifier
-
compareTo
public int compareTo(Timestamp o)
- Specified by:
compareToin interfaceComparable<T extends Identifier>- Overrides:
compareToin classLogicalTimestamp
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceTimestamp- Overrides:
hashCodein classLogicalTimestamp
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceTimestamp- Overrides:
equalsin classLogicalTimestamp
-
toString
public String toString()
- Overrides:
toStringin classLogicalTimestamp
-
-