|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.util.Pair<F,S>
F - The type of the first item.S - The type of the first item.public class Pair<F,S>
An immutable type-safe pair.
| Constructor Summary | |
|---|---|
protected |
Pair(F first,
S second)
Constructor for Pair. |
| Method Summary | ||
|---|---|---|
boolean |
equals(Object o)
Equality. |
|
F |
getFirst()
Accessor for the first item. |
|
S |
getSecond()
Accessor for the second item. |
|
int |
hashCode()
Hash code. |
|
static
|
of(F first,
S second)
Type safe factory method. |
|
String |
toString()
Describe ourself. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Pair(F first,
S second)
first - The first item.second - The second item.| Method Detail |
|---|
public static <F,S> Pair<F,S> of(F first,
S second)
F - The type of the first item.S - The type of the first item.first - The first item.second - The second item.
public F getFirst()
public S getSecond()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objecto - Object to compare.
true if and only if this object equals o.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||