Class Tuple3<E0,​E1,​E2>

  • Type Parameters:
    E0 - the type of the field 0
    E1 - the type of the field 1
    E2 - the type of the field 2

    public final class Tuple3<E0,​E1,​E2>
    extends java.lang.Object
    An immutable 3-tuple (triple) of statically typed fields.
    Since:
    Jet 3.0
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      E0 f0()
      Returns the value of the field 0.
      E1 f1()
      Returns the value of the field 1.
      E2 f2()
      Returns the value of the field 2.
      int hashCode()  
      java.lang.String toString()  
      static <E0,​E1,​E2>
      Tuple3<E0,​E1,​E2>
      tuple3​(E0 f0, E1 f1, E2 f2)
      Returns a new 3-tuple with the supplied values.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • tuple3

        public static <E0,​E1,​E2> Tuple3<E0,​E1,​E2> tuple3​(@Nullable
                                                                                 E0 f0,
                                                                                 @Nullable
                                                                                 E1 f1,
                                                                                 @Nullable
                                                                                 E2 f2)
        Returns a new 3-tuple with the supplied values.
      • f0

        @Nullable
        public E0 f0()
        Returns the value of the field 0.
      • f1

        @Nullable
        public E1 f1()
        Returns the value of the field 1.
      • f2

        @Nullable
        public E2 f2()
        Returns the value of the field 2.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object