|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.ValueTimeUtilFns com.isti.util.ValueTimeBlock
public class ValueTimeBlock
Class ValueTimeBlock defines a data block containing a parameter value object and a timestamp value. If the class for the data has a constructor with a String parameter then the de-archived data should be identical to the original data, otherwise the de-archived data will contain a string representation of the original data.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.isti.util.Archivable |
---|
Archivable.Marker |
Field Summary | |
---|---|
java.lang.Object |
data
The data object (Double, String, etc.) |
long |
timestamp
The timestamp value (seconds since January 1, 1970, 00:00:00 GMT.) |
Fields inherited from class com.isti.util.ValueTimeUtilFns |
---|
constructorParameterTypes, DATA_SEPARATOR, gmtFlag |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.isti.util.ValueTimeUtilFns |
---|
getComponentForClass, getConstructorForClass, getCurrentTime, getCurrentTimestamp, getTime, getTimestamp, getTimestampText, getTimestampText, getTimeText, getTimeText, getValueTimeBlock |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.Object data
public long timestamp
Constructor Detail |
---|
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.Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |