|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlv.gotika.engine.util.Pair<A,B>
public class Pair<A,B>
Data structure: an ordered 2-tuple consisting of generic objects.
| Constructor Summary | |
|---|---|
Pair(A first,
B second)
Standard constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
A |
getFirst()
Returns the first element of the pair. |
B |
getSecond()
Returns the second element of the pair. |
int |
hashCode()
Returns a hash code value for the pair (depends on its two elements). |
String |
toString()
Returns a string representation of the pair (concatenation of its two elements). |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(A first,
B second)
first - the first element of the pair.second - the second element of the pair.| Method Detail |
|---|
public A getFirst()
public B getSecond()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectequals(Object)public boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.
hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||