|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.whatswrong.javautils.Pair<A1,A2>
public class Pair<A1,A2>
A Pair is a typed pair of objects.
| Field Summary | |
|---|---|
A1 |
arg1
The first argument. |
A2 |
arg2
The second argument. |
| Constructor Summary | |
|---|---|
Pair(A1 arg1,
A2 arg2)
Creates a pair with the given arguments |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Checks whether both arguments are equal. |
int |
hashCode()
Returns a hashcode based on both arguments. |
String |
toString()
Returns ([arg1],[arg2]) where [arg1] is replaced by the value of the first argument and [arg2] replaced by the value of the second argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final A1 arg1
public final A2 arg2
| Constructor Detail |
|---|
public Pair(A1 arg1,
A2 arg2)
arg1 - First argument.arg2 - Second argument.| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objecto - the other pair.
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||