public final class RegistryTimestamp
extends java.lang.Object
This class may be instantiated.
This class is not indended to be subclassed.
| Constructor and Description |
|---|
RegistryTimestamp()
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(long timestamp)
Add individual contribution timestamp to the aggregated timestamp.
|
long |
getContentsTimestamp()
Returns value of the aggregated timestamp.
|
boolean |
isModifed()
Determines if the aggregate timestamp was modified using add() or remove()
methods.
|
void |
remove(long timestamp)
Remove individual contribution timestamp from the aggregated timestamp.
|
void |
reset()
Sets aggregated timestamp to the value corresponding to an empty registry.
|
void |
set(long timestamp)
Set value of the aggregated timestamp.
|
public long getContentsTimestamp()
public void set(long timestamp)
timestamp - the aggregated timestamp of the current registry contentspublic void reset()
public boolean isModifed()
public void add(long timestamp)
timestamp - the time stamp of the contribution being added to the registrypublic void remove(long timestamp)
timestamp - the time stamp of the contribution being removed from the registry