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.


Variable Index

 o first
The first object.
 o second
The second object.

Constructor Index

 o Pair()
Construct myself to hold a pair of objects initially null.
 o Pair(Object, Object)
Construct myself to hold a pair of objects.

Method Index

 o equals(Object)
 o equals(Pair)
 o toString()
Return a string that describes me.

Variables

 o first
  public Object first
The first object.
 o second
  public Object second
The second object.

Constructors

 o Pair
  public Pair(Object x,
              Object y)
Construct myself to hold a pair of objects.
Parameters:
x - The first object.
y - The second object.
 o Pair
  public Pair()
Construct myself to hold a pair of objects initially null.

Methods

 o toString
  public String toString()
Return a string that describes me.
Overrides:
toString in class Object
 o equals
  public boolean equals(Object object)
Overrides:
equals in class Object
 o equals
  public boolean equals(Pair pair)

All Packages  Class Hierarchy  This Package  Previous  Next  Index