ostore.apps.qtree.impl
Class Epoch

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

public class Epoch
extends Object
implements QuickSerializable, Comparable, Cloneable

Author:
Jason Lee

Field Summary
 long major
           
 long minor
           
 
Constructor Summary
Epoch(InputBuffer buffer)
           
Epoch(long major, long minor)
           
 
Method Summary
 Object clone()
           
 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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

major

public long major

minor

public long minor
Constructor Detail

Epoch

public Epoch(long major,
             long minor)

Epoch

public Epoch(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

clone

public Object clone()
Overrides:
clone in class Object