Package org.identityconnectors.common
Class Pair<T1,T2>
java.lang.Object
org.identityconnectors.common.Pair<T1,T2>
- All Implemented Interfaces:
Map.Entry<T1,
T2>
- Direct Known Subclasses:
DatabaseQueryBuilder.OrderBy
An arbitrary pair of objects. Convenient implementation of Map.Entry.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
first
-
second
-
-
Constructor Details
-
Pair
public Pair() -
Pair
-
-
Method Details
-
of
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
-
toString
-
getKey
-
getValue
-
setValue
-