com.timeindexing.basic
Class Offset

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

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

An Offset is a value that is an absolute offset into a stream. This is basically a constant.


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

Constructor Detail

Offset

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

Method Detail

value

public long value()
Get the count.

Specified by:
value in interface Value

position

public Position position()
Get the position.

Specified by:
position in interface Position

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 Offset.