Class jgl.Pair
All Packages Class Hierarchy This Package Previous Next Index
Class jgl.Pair
java.lang.Object
|
+----jgl.Pair
- public class Pair
- extends Object
A Pair is an object that contains two other objects. It is
most commonly used for conveniently storing and passing pairs
of objects.
-
first
- The first object.
-
second
- The second object.
-
Pair()
- Construct myself to hold a pair of objects initially null.
-
Pair(Object, Object)
- Construct myself to hold a pair of objects.
-
equals(Object)
-
-
equals(Pair)
-
-
toString()
- Return a string that describes me.
first
public Object first
- The first object.
second
public Object second
- The second object.
Pair
public Pair(Object x,
Object y)
- Construct myself to hold a pair of objects.
- Parameters:
- x - The first object.
- y - The second object.
Pair
public Pair()
- Construct myself to hold a pair of objects initially null.
toString
public String toString()
- Return a string that describes me.
- Overrides:
- toString in class Object
equals
public boolean equals(Object object)
- Overrides:
- equals in class Object
equals
public boolean equals(Pair pair)
All Packages Class Hierarchy This Package Previous Next Index