public class AgingData<TheUnit extends Unit>
extends java.lang.Object
Constructor and Description |
---|
AgingData(java.util.Date birthdate,
TheUnit value) |
AgingData(TheUnit value)
Construct an instance of AgingData with the value of unit.
|
Modifier and Type | Method and Description |
---|---|
long |
getAge()
Retrieve the age of this piece of data.
|
long |
getTimestamp() |
TheUnit |
getValue()
Return the value this instance wraps.
|
void |
setTimestamp(long timestamp) |
java.lang.String |
toString() |
public AgingData(TheUnit value)
value
- The data value for this bit of AgingData.public AgingData(java.util.Date birthdate, TheUnit value)
public TheUnit getValue()
public long getAge()
public long getTimestamp()
public void setTimestamp(long timestamp)
public java.lang.String toString()
toString
in class java.lang.Object