com.timeindexing.time
Class TimestampGenerator

java.lang.Object
  extended bycom.timeindexing.time.TimestampGenerator

public class TimestampGenerator
extends java.lang.Object

This class create a Timestamp object of the best fit resolution given the no. of seconds, the no. of subseconds, and whether the Timestamp should be an Absolute Timestamp or a Relative Timestamp.


Constructor Summary
TimestampGenerator()
          Construct a TimestampGenerator.
 
Method Summary
 Timestamp createTimestamp(long seconds, int subSeconds, boolean absolute)
          Actually create the Timestamp given the seconds, the subseconds, and whether the Timestamp should be absolute or relative.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampGenerator

public TimestampGenerator()
Construct a TimestampGenerator.

Method Detail

createTimestamp

public Timestamp createTimestamp(long seconds,
                                 int subSeconds,
                                 boolean absolute)
Actually create the Timestamp given the seconds, the subseconds, and whether the Timestamp should be absolute or relative.