edu.rice.cs.plt.tuple
Class Tuple
java.lang.Object
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()
|
Tuple
protected Tuple()
generateHashCode
protected abstract int generateHashCode()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object