Package icyllis.arc3d.core
Class Pair<L,R>
java.lang.Object
icyllis.arc3d.core.Pair<L,R>
- Type Parameters:
L
- the left element typeR
- the right element type
- All Implemented Interfaces:
Map.Entry<L,
R>
Immutable pair of two elements by default.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pair
public Pair() -
Pair
-
-
Method Details
-
of
-
of
-
getKey
-
getValue
-
setValue
-
getLeft
- Returns:
- the left element, may be null
-
getRight
- Returns:
- the right element, may be null
-
getFirst
- Returns:
- the first element, may be null
-
getSecond
- Returns:
- the second element, may be null
-
hashCode
public int hashCode()Same asMap.Entry.hashCode()
. -
equals
-
toString
-