com.timeindexing.time
Class Year

java.lang.Object
  extended by com.timeindexing.time.AbstractTimeSpecifier
      extended by com.timeindexing.time.Year
All Implemented Interfaces:
Value, TimeSpecifier, java.lang.Cloneable

public class Year
extends AbstractTimeSpecifier
implements TimeSpecifier

A TimeSpecifier for years.


Constructor Summary
Year(long count)
          Construct a Year TimeSpecifier.
Year(long count, TimeDirection direction)
          Construct a Year TimeSpecifier.
Year(long count, TimeDirection direction, TimeSpecifier modifier)
          Construct a Year TimeSpecifier.
 
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
 

Constructor Detail

Year

public Year(long count)
Construct a Year TimeSpecifier.


Year

public Year(long count,
            TimeDirection direction)
Construct a Year TimeSpecifier.


Year

public Year(long count,
            TimeDirection direction,
            TimeSpecifier modifier)
Construct a Year TimeSpecifier.

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

Overrides:
toString in class java.lang.Object


Timeindexing 2008