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:
    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

    All Methods Static Methods Instance Methods Concrete Methods
    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()`
    `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.

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface java.util.Map.Entry

      `comparingByKey, comparingByKey, comparingByValue, comparingByValue`

- - ### Method Detail

    - #### tuple2

          public static <E0,E1> Tuple2<E0,E1> tuple2(E0 f0,
                                                     E1 f1)

      Returns a new 2-tuple with the supplied values.

    - #### f0

          public E0 f0()

      Returns the value of the field 0.

    - #### f1

          public E1 f1()

      Returns the value of the field 1.

    - #### getKey

          public E0 getKey()

      Specified by:
        `getKey` in interface `Map.Entry<E0,E1>`

    - #### getValue

          public E1 getValue()

      Specified by:
        `getValue` in interface `Map.Entry<E0,E1>`

    - #### setValue

          public E1 setValue(E1 value)

      Specified by:
        `setValue` in interface `Map.Entry<E0,E1>`

    - #### equals

          public boolean equals(Object obj)

      Specified by:
        `equals` in interface `Map.Entry<E0,E1>`
      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Specified by:
        `hashCode` in interface `Map.Entry<E0,E1>`
      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2019. All rights reserved.