All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Pair

java.lang.Object
   |
   +----Acme.GenericCloneable
           |
           +----Acme.Pair

public class Pair
extends GenericCloneable
Trivial Object-pair class.

Sometimes you want to store a pair of values without going to the trouble of making a whole new special-purpose class.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o Pair(Object, Object)

Method Index

 o equals(Object)
Equality test.
 o hashCode()
Compute a hash code for the pair.
 o left()
Fetch the left object.
 o right()
Fetch the right object.

Constructors

 o Pair
 public Pair(Object left,
             Object right)

Methods

 o left
 public Object left()
Fetch the left object.

 o right
 public Object right()
Fetch the right object.

 o equals
 public boolean equals(Object o)
Equality test.

Overrides:
equals in class Object
 o hashCode
 public int hashCode()
Compute a hash code for the pair.

Overrides:
hashCode in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs