|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.PairImpl<T1,T2>
T1 - The type of the first element of this pair.T2 - The type of the second element of this pair.public class PairImpl<T1,T2>
An implementation of the pair interface.
| Constructor Summary | |
|---|---|
PairImpl(T1 first,
T2 second)
Constructs a new pair. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
T1 |
getFirst()
Returns the first object in the pair. |
T2 |
getSecond()
Returns the second object in the pair. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PairImpl(T1 first,
T2 second)
first - The first object.second - The second object.| Method Detail |
|---|
public T1 getFirst()
getFirst in interface Pair<T1,T2>public T2 getSecond()
getSecond in interface Pair<T1,T2>public boolean equals(Object other)
equals in class Objectpublic 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 | |||||||||