T - Timestamped value typepublic final class Timestamped<T> extends Object
| Constructor and Description |
|---|
Timestamped(T value,
org.onosproject.store.Timestamp timestamp)
Creates a time stamped value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isNewer(Timestamped<T> other)
Tests if this timestamped value is newer than the other.
|
boolean |
isNewerThan(org.onosproject.store.Timestamp other)
Tests if this timestamp is newer than the specified timestamp.
|
org.onosproject.store.Timestamp |
timestamp()
Returns the time stamp.
|
String |
toString() |
T |
value()
Returns the value.
|
public Timestamped(T value, org.onosproject.store.Timestamp timestamp)
value - to be timestamptimestamp - the timestamppublic T value()
public org.onosproject.store.Timestamp timestamp()
public boolean isNewer(Timestamped<T> other)
other - timestamped valuepublic boolean isNewerThan(org.onosproject.store.Timestamp other)
other - timestamp to compare against