ostore.apps.qtree.impl
Class TreeKey

java.lang.Object
  |
  +--ostore.apps.qtree.impl.TreeKey
All Implemented Interfaces:
Cloneable, Comparable, QuickSerializable

public class TreeKey
extends Object
implements QuickSerializable, Comparable, Cloneable

Author:
Jason Lee

Field Summary
 Epoch epoch
           
 SecureHash guid
           
 
Constructor Summary
TreeKey(InputBuffer buffer)
           
TreeKey(SecureHash g, long major, long minor)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 int hashCode()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

guid

public SecureHash guid

epoch

public Epoch epoch
Constructor Detail

TreeKey

public TreeKey(SecureHash g,
               long major,
               long minor)

TreeKey

public TreeKey(InputBuffer buffer)
        throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object