|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.collection.Pair<T1,T2>
T1 - type of the first object in the pairT2 - type of the second object in the pairpublic class Pair<T1,T2>
Container for a pair of objects.
| Field Summary | |
|---|---|
private T1 |
first
First object in pair. |
private T2 |
second
Second object in pair. |
| Constructor Summary | |
|---|---|
Pair()
Constructor. |
|
Pair(Pair<? extends T1,? extends T2> pair)
Copy constructor. |
|
Pair(T1 newFirst,
T2 newSecond)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
T1 |
getFirst()
Gets the first object in the pair. |
T2 |
getSecond()
Gets the second object in the pair. |
int |
hashCode()
|
void |
setFirst(T1 newFirst)
Sets the first object in the pair. |
void |
setSecond(T2 newSecond)
Sets the second object in the pair. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private T1 first
private T2 second
| Constructor Detail |
|---|
public Pair()
public Pair(@Nullable
T1 newFirst,
@Nullable
T2 newSecond)
newFirst - first object in the pairnewSecond - second object in the pair
public Pair(@Nonnull
Pair<? extends T1,? extends T2> pair)
pair - pair to be copied| Method Detail |
|---|
@Nullable public T1 getFirst()
public void setFirst(@Nullable
T1 newFirst)
newFirst - first object in the pair@Nullable public T2 getSecond()
public void setSecond(@Nullable
T2 newSecond)
newSecond - second object in the pair
public boolean equals(@Nullable
Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object@Nonnull public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||