Class Tuple2<T0,T1>

java.lang.Object
org.apache.wayang.basic.data.Tuple2<T0,T1>
All Implemented Interfaces:
Serializable

public class Tuple2<T0,T1> extends Object implements Serializable
A type for tuples. Might be replaced by existing classes for this purpose, such as from the Scala library.
See Also:
  • Field Details

    • field0

      public T0 field0
    • field1

      public T1 field1
  • Constructor Details

    • Tuple2

      public Tuple2()
    • Tuple2

      public Tuple2(T0 field0, T1 field1)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getField0

      public T0 getField0()
    • getField1

      public T1 getField1()
    • swap

      public Tuple2<T1,T0> swap()
      Returns:
      a new instance with the fields of this instance swapped