Package com.hazelcast.jet.datamodel
Class Tuple2<E0,E1>
java.lang.Object
com.hazelcast.jet.datamodel.Tuple2<E0,E1>
- Type Parameters:
E0
- the type of the field 0E1
- the type of the field 1
- All Implemented Interfaces:
Map.Entry<E0,E1>
public final class Tuple2<E0,E1> extends Object implements Map.Entry<E0,E1>
An immutable 2-tuple (pair) of statically typed fields. Also implements
Map.Entry
.- Since:
- 3.0
-
Method Summary
Modifier and Type Method 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()
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.