public class ValueTimeBlock extends ValueTimeUtilFns implements Archivable
Archivable.Marker
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
data
The data object (Double, String, etc.)
|
long |
timestamp
The timestamp value (seconds since January 1, 1970, 00:00:00 GMT.)
|
constructorParameterTypes, DATA_SEPARATOR, gmtFlag
Constructor and Description |
---|
ValueTimeBlock(java.lang.Object data,
long timestamp)
Constructor which initializes values.
|
ValueTimeBlock(java.lang.String dataStr)
Constructor which initializes values.
|
ValueTimeBlock(java.lang.String dataStr,
Archivable.Marker mkrObj)
Constructor which initializes values.
|
ValueTimeBlock(ValueTimeBlock vtb)
Constructor which initializes values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
dataEquals(java.lang.Object data)
Indicates whether some other data is equal to this object's data.
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is equal to this one.
|
boolean |
equals(ValueTimeBlock obj)
Indicates whether some other object is equal to this one.
|
java.util.Date |
getArchiveDate()
Returns a 'Date' object representing the date to be used for archival
purposes.
|
long |
getArchiveTime()
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT
representing the date to be used for archival purposes.
|
java.lang.String |
getTimestampText()
Returns a string representation of the timestamp.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
timestampEquals(long timestamp)
Indicates whether some other timestamp is equal to this object's timestamp.
|
java.lang.String |
toArchivedForm()
Returns the archivable representation for this object.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
getComponentForClass, getConstructorForClass, getCurrentTime, getCurrentTimestamp, getTime, getTimestamp, getTimestampText, getTimestampText, getTimeText, getTimeText, getValueTimeBlock
public java.lang.Object data
public long timestamp
public ValueTimeBlock(java.lang.Object data, long timestamp)
data
- data object, such as Integer, Double, String, etc.timestamp
- timestamp value for data
(seconds since January 1, 1970, 00:00:00 GMT.)getCurrentTimestamp
public ValueTimeBlock(java.lang.String dataStr)
dataStr
- the archivable representation for this object.public ValueTimeBlock(java.lang.String dataStr, Archivable.Marker mkrObj)
dataStr
- the archivable representation for this object.mkrObj
- the marker object.public ValueTimeBlock(ValueTimeBlock vtb)
vtb
- the value time block.public boolean dataEquals(java.lang.Object data)
data
- the reference data with which to compare.true
if this object's data is the same as the data
argument; false
otherwise.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.public boolean equals(ValueTimeBlock obj)
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.public java.util.Date getArchiveDate()
getArchiveDate
in interface Archivable
public long getArchiveTime()
public java.lang.String getTimestampText()
public int hashCode()
java.util.Hashtable
.hashCode
in class java.lang.Object
public boolean timestampEquals(long timestamp)
timestamp
- the reference timestamp with which to compare.true
if this object's timestamp is the same as the
timestamp argument; false
otherwise.public java.lang.String toArchivedForm()
toArchivedForm
in interface Archivable
public java.lang.String toString()
toString
in class java.lang.Object