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
Container for a pair of objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
first
First object in pair. -
second
Second object in pair.
-
-
Constructor Details
-
Pair
public Pair()Constructor. -
Pair
Constructor.- Parameters:
newFirst
- first object in the pairnewSecond
- second object in the pair
-
Pair
Copy constructor.- Parameters:
pair
- pair to be copied
-
-
Method Details
-
getFirst
Gets the first object in the pair.- Returns:
- first object in the pair
-
setFirst
Sets the first object in the pair.- Parameters:
newFirst
- first object in the pair
-
getSecond
Gets the second object in the pair.- Returns:
- second object in the pair
-
setSecond
Sets the second object in the pair.- Parameters:
newSecond
- second object in the pair
-
equals
-
hashCode
public int hashCode() -
toString
-