E0
- the type of the field 0E1
- the type of the field 1public final class Tuple2<E0,E1> extends Object implements Map.Entry<E0,E1>, Serializable
Map.Entry
.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
E0 |
f0()
Returns the value of the field 0.
|
E1 |
f1()
Returns the value of the field 1.
|
E0 |
getKey() |
E1 |
getValue() |
int |
hashCode() |
E0 |
requiredF0()
Returns the value of the f0, throwing if it's null.
|
E1 |
requiredF1()
Returns the value of the f1, throwing if it's null..
|
E1 |
setValue(E1 value) |
String |
toString() |
static <E0,E1> Tuple2<E0,E1> |
tuple2(E0 f0,
E1 f1)
Returns a new 2-tuple with the supplied values.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
Copyright © 2023 Hazelcast, Inc.. All rights reserved.