Package org.alfresco.util
Class Pair<F,S>
java.lang.Object
org.alfresco.util.Pair<F,S>
- All Implemented Interfaces:
Serializable
Utility class for containing two things that aren't like each other
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NULL_PAIR
-
-
Constructor Details
-
Pair
Make a new one.- Parameters:
first
- The first member.second
- The second member.
-
-
Method Details
-
nullPair
-
getFirst
Get the first member of the tuple.- Returns:
- The first member.
-
getSecond
Get the second member of the tuple.- Returns:
- The second member.
-
setFirst
-
setSecond
-
equals
-
hashCode
public int hashCode() -
toString
-