public class VersionedValue<T> extends Object
Constructor and Description |
---|
VersionedValue(int version,
T value,
long timestamp)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
long |
getTimestamp()
Returns the time the version was taken.
|
T |
getValue()
Returns the value.
|
int |
getVersion()
Returns the version.
|
String |
toString() |
public VersionedValue(int version, T value, long timestamp)
version
- version numbervalue
- value at that versiontimestamp
- time when version was takenpublic int getVersion()
public T getValue()
public long getTimestamp()