ostore.util
Class QSPair
java.lang.Object
|
+--ostore.util.QSPair
- All Implemented Interfaces:
- QuickSerializable
- public final class QSPair
- extends Object
- implements QuickSerializable
Pair for QS classes.
- Version:
- $Id: QSPair.java,v 1.1 2003/03/14 22:28:03 jeffpang Exp $
- Author:
- Jeff Pang
- See Also:
Pair
first
public QuickSerializable first
second
public QuickSerializable second
QSPair
public QSPair()
- Default constructor
QSPair
public QSPair(QuickSerializable f,
QuickSerializable s)
- Constructor
- Parameters:
f
- == first object of the pairs
- == second object of the pair
QSPair
public QSPair(InputBuffer buffer)
throws QSException
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
first
public final QuickSerializable first()
- Returns the first element of the pair.
- Returns:
- The first element of the pair.
second
public final QuickSerializable second()
- Returns the second element of the pair.
- Returns:
- The second element of the pair.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object