com.timeindexing.basic
Class AbsolutePosition

java.lang.Object
  extended bycom.timeindexing.basic.AbsolutePosition
All Implemented Interfaces:
Absolute, java.lang.Cloneable, Position, Value

public class AbsolutePosition
extends java.lang.Object
implements Position, Absolute, java.lang.Cloneable

An AbsolutePosition is a value that is an absolute position from the zeroth index element. This is basically a constant.


Field Summary
 
Fields inherited from interface com.timeindexing.basic.Position
END_OF_INDEX, TOO_HIGH, TOO_LOW
 
Constructor Summary
AbsolutePosition(long value)
          Construct a new AbsolutePosition from a given value
AbsolutePosition(Position pos)
          Construct a new AbsolutePosition from a Position
 
Method Summary
 java.lang.Object clone()
          Clone me
 Position position()
          Get the position.
 java.lang.String toString()
          String value of a Position.
 long value()
          Get the count.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbsolutePosition

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


AbsolutePosition

public AbsolutePosition(Position pos)
Construct a new AbsolutePosition from a Position

Method Detail

position

public Position position()
Get the position.

Specified by:
position in interface Position

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

Specified by:
clone in interface Position
Throws:
java.lang.CloneNotSupportedException

toString

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