com.timeindexing.basic
Class RelativeCount

java.lang.Object
  extended bycom.timeindexing.basic.RelativeCount
All Implemented Interfaces:
java.lang.Cloneable, Count, Relative, Value
Direct Known Subclasses:
RelativeAdjustableCount

public class RelativeCount
extends java.lang.Object
implements Count, Relative, java.lang.Cloneable

An RelativeCount is a count that is an relative count from the current index element. This is basically a constant, which can be +ve or -ve.


Constructor Summary
RelativeCount(Count c)
          Construct a new RelativeCount from a Count
RelativeCount(long value)
          Construct a new RelativeCount from a given value
 
Method Summary
 java.lang.Object clone()
          Clone me
 java.lang.String toString()
          String value of a Count.
 long value()
          Get the count.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelativeCount

public RelativeCount(long value)
Construct a new RelativeCount from a given value


RelativeCount

public RelativeCount(Count c)
Construct a new RelativeCount from a Count

Method Detail

value

public long value()
Get the count.

Specified by:
value in interface Value

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone me

Throws:
java.lang.CloneNotSupportedException

toString

public java.lang.String toString()
String value of a Count.