Package org.identityconnectors.common
Class Pair<T1,T2>
- java.lang.Object
-
- org.identityconnectors.common.Pair<T1,T2>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
T1
getKey()
T2
getValue()
int
hashCode()
static <L,R>
Pair<L,R>of(L left, R right)
Obtains an immutable pair of from two objects inferring the generic types.T2
setValue(T2 value)
String
toString()
-
-
-
Method Detail
-
of
public static <L,R> Pair<L,R> of(L left, R right)
Obtains an immutable pair of from two objects inferring the generic types.
This factory allows the pair to be created using inference to obtain the generic types.
- Type Parameters:
L
- the left element typeR
- the right element type- Parameters:
left
- the left element, may be nullright
- the right element, may be null- Returns:
- a pair formed from the two parameters, not null
- Since:
- 1.4
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object object)
-
-