org.alfresco.util
Class Pair<F,S>
org.alfresco.util.Pair<F,S> All Implemented Interfaces:
-
@org.alfresco.api.AlfrescoPublicApi
public final class Pair<F,S>
Utility class for containing two things that aren't like each other
See Also:
-
Constructor Summary |
Pair(F first, S second) Make a new one. |
NULL_PAIR
public static final Pair NULL_PAIR
Pair
public Pair(F first, S second) -
Make a new one.
Parameters:
-
first - The first member.
-
second - The second member.
nullPair
public static final <X,Y> Pair<X,Y> nullPair()
getFirst
public final F getFirst() -
Get the first member of the tuple.
Returns:
-
The first member.
getSecond
public final S getSecond() -
Get the second member of the tuple.
Returns:
-
The second member.
setFirst
public final void setFirst(F first)
setSecond
public final void setSecond(S second)
equals
public boolean equals(Object other) -
Overrides:
-
hashCode
public int hashCode()
-
Overrides:
-
toString
-
Overrides:
-