dk.vajhoej.isam
Class Key<T>

java.lang.Object
  extended by dk.vajhoej.isam.Key<T>
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Key0, Key1, Key2

public class Key<T>
extends java.lang.Object
implements java.io.Serializable

Class Key represent a key in the ISAM file.

See Also:
Serialized Form

Constructor Summary
Key(int ix, T value)
          Create instance of Key.
 
Method Summary
 int getIx()
          Get index.
 T getValue()
          Get value.
 java.lang.String toString()
          Convert to String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Key

public Key(int ix,
           T value)
Create instance of Key.

Parameters:
ix - key index
value - key value
Method Detail

getIx

public int getIx()
Get index.

Returns:
key index

getValue

public T getValue()
Get value.

Returns:
key value

toString

public java.lang.String toString()
Convert to String. For logging purposes only.

Overrides:
toString in class java.lang.Object