T - the type of the value that is storedpublic final class TimestampedEntry<T> extends Object
| Constructor and Description |
|---|
TimestampedEntry(T value)
Constructor that sets the timestamp to the current time.
|
TimestampedEntry(T value,
long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getTimestamp()
Retrieves the time at which the value was stored.
|
T |
getValue()
Retrieves the stored value.
|
int |
hashCode() |
String |
toString() |
public TimestampedEntry(T value)
value - the value that is storedpublic TimestampedEntry(T value, long timestamp)
public T getValue()
public long getTimestamp()
Copyright © 2017–2019. All rights reserved.