com.timeindexing.time
Class Now

java.lang.Object
  extended bycom.timeindexing.time.AbstractTimeSpecifier
      extended bycom.timeindexing.time.Now
All Implemented Interfaces:
java.lang.Cloneable, TimeSpecifier, Value

public class Now
extends AbstractTimeSpecifier
implements TimeSpecifier

A TimeSpecifier for now.


Field Summary
static Now Now
          A static singleton instance.
 
Constructor Summary
Now()
          Construct a TimeSpecifier for Now.
Now(TimeSpecifier modifier)
          Construct a TimeSpecifier for Now.
 
Method Summary
 Timestamp instantiate(Timestamp t)
          Instantiate this TimeSpecifier w.r.t a particular Timestamp.
 java.lang.String toString()
          To String
 
Methods inherited from class com.timeindexing.time.AbstractTimeSpecifier
afterDoing, clone, getDirection, getHowMany, getPredecessor, hasPredecessor, then, value
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.timeindexing.time.TimeSpecifier
afterDoing, then, value
 

Field Detail

Now

public static final Now Now
A static singleton instance. Can be used in context Now.Now

Constructor Detail

Now

public Now()
Construct a TimeSpecifier for Now.


Now

public Now(TimeSpecifier modifier)
Construct a TimeSpecifier for Now.

Method Detail

instantiate

public Timestamp instantiate(Timestamp t)
Instantiate this TimeSpecifier w.r.t a particular Timestamp. It returns a Timestamp which has been modified by the amount of the TimeSpecifier.

Specified by:
instantiate in interface TimeSpecifier

toString

public java.lang.String toString()
To String