T
- a class being stored at different time stamps.public class TimeStamp<T>
extends java.lang.Object
Constructor and Description |
---|
TimeStamp(Store store,
T input)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
ensureCapacity(int minCapacity)
Specify least number of different values to be used by Timestamp.
|
T |
previousValue() |
void |
remove(int stamp)
The function removes the level specified by the stamp.
|
int |
stamp()
It returns the value of the most recent stamp used within that timestamp.
|
java.lang.String |
toString() |
void |
update(T val)
It updates the value of the timestamp with the provided value.
|
T |
value()
It returns the most recent value of the timestamp.
|
public void ensureCapacity(int minCapacity)
minCapacity
- public final T previousValue()
public void remove(int stamp)
stamp
- the number of the level.public final int stamp()
public java.lang.String toString()
toString
in class java.lang.Object
public void update(T val)
val
- value to which the timestamp needs to be updated.public final T value()