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:
Serializable
,Map.Entry<E0,
E1>
An immutable 2-tuple (pair) of statically typed fields. Also implements
Map.Entry
.- Since:
- Jet 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
f0()
Returns the value of the field 0.f1()
Returns the value of the field 1.getKey()
getValue()
int
hashCode()
Returns the value of the f0, throwing if it's null.Returns the value of the f1, throwing if it's null..toString()
static <E0,
E1> Tuple2<E0, E1> tuple2
(E0 f0, E1 f1) Returns a new 2-tuple with the supplied values.
-
Method Details
-
tuple2
Returns a new 2-tuple with the supplied values. -
f0
Returns the value of the field 0. -
f1
Returns the value of the field 1. -
getKey
-
getValue
-
setValue
-
requiredF0
Returns the value of the f0, throwing if it's null. -
requiredF1
Returns the value of the f1, throwing if it's null.. -
equals
-
hashCode
public int hashCode() -
toString
-