|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectspase.parser130.Pair<L,R>
public class Pair<L,R>
An simple class to maintain pairs of objects. Adapted form a web post.
| Constructor Summary | |
|---|---|
Pair(L left,
R right)
Creates an instance of pair with a "left" value and a "right" value. |
|
| Method Summary | ||
|---|---|---|
static
|
create(A left,
B right)
Creates an instance of pair with a "left" value and a "right" value. |
|
static boolean |
equal(java.lang.Object o1,
java.lang.Object o2)
Determines if one object equals another. |
|
boolean |
equals(java.lang.Object o)
Determines if one object equals another. |
|
L |
getLeft()
Returns the "right" element of the pair. |
|
R |
getRight()
Returns the "right" element of the pair. |
|
int |
hashCode()
Returns the hash code. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(L left,
R right)
| Method Detail |
|---|
public static <A,B> Pair<A,B> create(A left,
B right)
public R getRight()
public L getLeft()
public final boolean equals(java.lang.Object o)
equals in class java.lang.Objecttrue if the content is the same;
false otherwise.
public static final boolean equal(java.lang.Object o1,
java.lang.Object o2)
true if the content is the same;
false otherwise.public int hashCode()
hashCode in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||