public class Pair<A,B> extends java.lang.Object implements java.lang.Comparable<Pair<A,?>>
| Constructor and Description | 
|---|
| Pair()Default constructor | 
| Pair(A firstObj,
    B secondObj)Default constructor | 
| Pair(Pair<A,B> pair)Cloning Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Pair<A,?> o)implements Comparable on the first element only. | 
| boolean | equals(java.lang.Object obj) | 
| A | getFirst() | 
| B | getSecond() | 
| int | hashCode() | 
| void | setFirst(A firstObj) | 
| void | setSecond(B secondObj) | 
| java.lang.String | toString() | 
public void setFirst(A firstObj)
public A getFirst()
public void setSecond(B secondObj)
public B getSecond()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object<null>" if the
 first object is null.