T - the type of the value that is storedpublic 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)
Constructor that sets all fields.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getTimestamp()
Retrieves the time at which the value was stored.
|
T |
getValue()
Retrieves the stored value.
|
String |
toString() |
public TimestampedEntry(T value, long timestamp)
value - the value that is storedtimestamp - the time at which the value was storedpublic TimestampedEntry(T value)
value - the value that is storedpublic T getValue()
public long getTimestamp()
Copyright © 2017–2019. All rights reserved.