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 0
- E1- 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 SummaryModifier and TypeMethodDescriptionbooleanf0()Returns the value of the field 0.f1()Returns the value of the field 1.getKey()getValue()inthashCode()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- 
tuple2Returns a new 2-tuple with the supplied values.
- 
f0Returns the value of the field 0.
- 
f1Returns the value of the field 1.
- 
getKey
- 
getValue
- 
setValue
- 
requiredF0Returns the value of the f0, throwing if it's null.
- 
requiredF1Returns the value of the f1, throwing if it's null..
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-