ostore.tapestry.impl
Class GuidAddr

java.lang.Object
  |
  +--ostore.tapestry.impl.GuidAddr
All Implemented Interfaces:
Cloneable, Comparable, QuickSerializable

public class GuidAddr
extends Object
implements QuickSerializable, Cloneable, Comparable


Constructor Summary
GuidAddr(InputBuffer buffer)
           
GuidAddr(SecureHash guid, NodeId addr)
           
 
Method Summary
 Object clone()
           
 int compareTo(Object o)
           
 boolean equals(Object other)
           
 NodeId getAddr()
           
 SecureHash getGuid()
           
 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
 

Constructor Detail

GuidAddr

public GuidAddr(SecureHash guid,
                NodeId addr)

GuidAddr

public GuidAddr(InputBuffer buffer)
         throws QSException
Method Detail

getGuid

public SecureHash getGuid()

getAddr

public NodeId getAddr()

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.
Specified by:
serialize in interface QuickSerializable
Following copied from interface: ostore.util.QuickSerializable
Parameters:
buffer - the output buffer to add the object to

equals

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

compareTo

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

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object