edu.rice.cs.plt.tuple
Class Tuple

java.lang.Object
  extended by edu.rice.cs.plt.tuple.Tuple
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Octet, Option, Pair, Quad, Quint, Septet, Sextet, Triple

public abstract class Tuple
extends Object
implements Serializable

Abstract parent of all tuple classes, providing lazy evaluation of the hash code. See the package documentation for general discussion of the tuple classes.

As a wrapper for arbitrary objects, instances of this class will serialize without error only if the wrapped objects are serializable.

See Also:
Serialized Form

Constructor Summary
protected Tuple()
           
 
Method Summary
protected abstract  int generateHashCode()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tuple

protected Tuple()
Method Detail

generateHashCode

protected abstract int generateHashCode()

hashCode

public int hashCode()
Overrides:
hashCode in class Object