Package org.onosproject.store
Interface Timestamp
-
- All Superinterfaces:
Comparable<Timestamp>
- All Known Implementing Classes:
LogicalTimestamp
,MultiValuedTimestamp
,Version
,WallClockTimestamp
public interface Timestamp extends Comparable<Timestamp>
Opaque version structure.Classes implementing this interface must also implement
hashCode()
andequals(Object)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
default boolean
isNewerThan(Timestamp other)
Tests if this timestamp is newer than the specified timestamp.default boolean
isOlderThan(Timestamp other)
Tests if this timestamp is older than the specified timestamp.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
isNewerThan
default boolean isNewerThan(Timestamp other)
Tests if this timestamp is newer than the specified timestamp.- Parameters:
other
- timestamp to compare against- Returns:
- true if this instance is newer
-
isOlderThan
default boolean isOlderThan(Timestamp other)
Tests if this timestamp is older than the specified timestamp.- Parameters:
other
- timestamp to compare against- Returns:
- true if this instance is older
-
-