com.timeindexing.time
Class AbstractAbsoluteTimestamp

java.lang.Object
  extended by com.timeindexing.time.AbstractAbsoluteTimestamp
All Implemented Interfaces:
Absolute, Value, AbsoluteTimestamp, Timestamp
Direct Known Subclasses:
MicrosecondTimestamp, MillisecondTimestamp, NanosecondTimestamp, SecondTimestamp

public abstract class AbstractAbsoluteTimestamp
extends java.lang.Object
implements AbsoluteTimestamp

An abstract base class for implementations of AbsoluteTimestamp. It provides default methods for getEpoch() and setEpoch().


Field Summary
 
Fields inherited from interface com.timeindexing.time.Timestamp
ELAPSED_MICROSECOND, ELAPSED_MICROSECOND_SIGN, ELAPSED_MILLISECOND, ELAPSED_MILLISECOND_SIGN, ELAPSED_NANOSECOND, ELAPSED_NANOSECOND_SIGN, ELAPSED_SECOND, ELAPSED_SECOND_SIGN, ELAPSED_UNITS, ELAPSED_UNITS_SIGN, EXTENDED, EXTENDED_2, EXTENDED_3, EXTENDED_4, MICROSECOND, MICROSECOND_SIGN, MILLISECOND, MILLISECOND_SIGN, NANOSECOND, NANOSECOND_SIGN, SECOND, SECOND_SIGN, SPARE_3E, SPARE_3E_SIGN, SPARE_FD, SPARE_FD_SIGN, SPARE_FE, SPARE_FE_SIGN, TOP_2_MASK, TOP_4_MASK, TOP_6_MASK, TOP_8_MASK, ZERO
 
Constructor Summary
AbstractAbsoluteTimestamp()
           
 
Method Summary
 Epoch getEpoch()
          Get the Epoch for the Timestamp.
 Timestamp setEpoch(Epoch epoch)
          Set the Epoch for the Timestamp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.timeindexing.time.AbsoluteTimestamp
isAfterEpoch, isBeforeEpoch
 
Methods inherited from interface com.timeindexing.time.Timestamp
getNanoSeconds, getScale, getSeconds
 
Methods inherited from interface com.timeindexing.basic.Value
value
 

Constructor Detail

AbstractAbsoluteTimestamp

public AbstractAbsoluteTimestamp()
Method Detail

getEpoch

public Epoch getEpoch()
Get the Epoch for the Timestamp.

Specified by:
getEpoch in interface AbsoluteTimestamp

setEpoch

public Timestamp setEpoch(Epoch epoch)
Set the Epoch for the Timestamp.

Specified by:
setEpoch in interface AbsoluteTimestamp
Parameters:
epoch - The Epoch to use


Timeindexing 2008