Modifier and Type | Method and 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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
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.
L
- the left element typeR
- the right element typeleft
- the left element, may be nullright
- the right element, may be nullpublic int hashCode()
public boolean equals(Object object)
Copyright © 2022. All rights reserved.