Class Pair<T1,T2>
- java.lang.Object
-
- net.shibboleth.utilities.java.support.collection.Pair<T1,T2>
-
- Type Parameters:
T1- type of the first object in the pairT2- type of the second object in the pair
- Direct Known Subclasses:
LangBearingString
public class Pair<T1,T2> extends Object
Container for a pair of objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)T1getFirst()Gets the first object in the pair.T2getSecond()Gets the second object in the pair.inthashCode()voidsetFirst(T1 newFirst)Sets the first object in the pair.voidsetSecond(T2 newSecond)Sets the second object in the pair.StringtoString()
-
-
-
Method Detail
-
getFirst
@Nullable public T1 getFirst()
Gets the first object in the pair.- Returns:
- first object in the pair
-
setFirst
public void setFirst(@Nullable T1 newFirst)Sets the first object in the pair.- Parameters:
newFirst- first object in the pair
-
getSecond
@Nullable public T2 getSecond()
Gets the second object in the pair.- Returns:
- second object in the pair
-
setSecond
public void setSecond(@Nullable T2 newSecond)Sets the second object in the pair.- Parameters:
newSecond- second object in the pair
-
-