Package org.onosproject.store
Class LogicalTimestamp
- java.lang.Object
-
- org.onosproject.store.LogicalTimestamp
-
- All Implemented Interfaces:
Comparable<Timestamp>
,Timestamp
public class LogicalTimestamp extends Object implements Timestamp
Timestamp based on logical sequence value.LogicalTimestamps are ordered by their sequence values.
-
-
Constructor Summary
Constructors Constructor Description LogicalTimestamp(long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Timestamp o)
boolean
equals(Object obj)
int
hashCode()
String
toString()
long
value()
Returns the sequence value.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.onosproject.store.Timestamp
isNewerThan, isOlderThan
-
-
-
-
Method Detail
-
compareTo
public int compareTo(Timestamp o)
- Specified by:
compareTo
in interfaceComparable<Timestamp>
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
value
public long value()
Returns the sequence value.- Returns:
- sequence value
-
-