|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.rfid.util.Pair<One,Two>
One - Two - public class Pair<One,Two>
A generic class for encapsulating a pair of any two objects.
| Constructor Summary | |
|---|---|
Pair(One one,
Two two)
Creates a new Pair using the specified objects. |
|
| Method Summary | ||
|---|---|---|
static
|
create(A one,
B two)
Static method for creating a new pair of objects. |
|
static boolean |
equal(java.lang.Object o1,
java.lang.Object o2)
Static method to returns true if the given object pair matches this Pair, false o/w. |
|
boolean |
equals(java.lang.Object o)
Returns true if the given object matches this Pair, false o/w. |
|
One |
getOne()
Returns the first object |
|
Two |
getTwo()
Returns the second object. |
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(One one,
Two two)
Pair using the specified objects.
one - The first objecttwo - The second object| Method Detail |
|---|
public static <A,B> Pair<A,B> create(A one,
B two)
A - The type of the first objectB - The type of the second objectone - The first objecttwo - The second object
Pairpublic One getOne()
The - first objectpublic Two getTwo()
public final boolean equals(java.lang.Object o)
Pair, false o/w.
equals in class java.lang.ObjectPair, false o/w
public static final boolean equal(java.lang.Object o1,
java.lang.Object o2)
Pair, false o/w.
o1 - The first objecto2 - The second object
Pair, false o/w
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||