Class Tuple

    • Constructor Summary

      Constructors 
      Constructor Description
      Tuple()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static <T0,​T1>
      Tuple2<T0,​T1>
      of​(T0 t0, T1 t1)
      Create a Tuple of 2 elements.
      static <T0,​T1,​T2>
      Tuple3<T0,​T1,​T2>
      of​(T0 t0, T1 t1, T2 t2)
      Create a Tuple of 3 elements.
      static <T0,​T1,​T2,​T3>
      Tuple4<T0,​T1,​T2,​T3>
      of​(T0 t0, T1 t1, T2 t2, T3 t3)
      Create a Tuple of 4 elements.
      static <T0,​T1,​T2,​T3,​T4>
      Tuple5<T0,​T1,​T2,​T3,​T4>
      of​(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4)
      Create a Tuple of 5 elements.
      static <T0,​T1,​T2,​T3,​T4,​T5>
      Tuple6<T0,​T1,​T2,​T3,​T4,​T5>
      of​(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
      Create a Tuple of 6 elements.
      static <T0,​T1,​T2,​T3,​T4,​T5,​T6>
      Tuple7<T0,​T1,​T2,​T3,​T4,​T5,​T6>
      of​(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6)
      Create a Tuple of 7 elements.
      static <T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7>
      Tuple8<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7>
      of​(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7)
      Create a Tuple of 8 elements.
      static <T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>
      Tuple9<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>
      of​(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8)
      Create a Tuple of 9 elements.
      static <T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9>
      Tuple10<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9>
      of​(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9)
      Create a Tuple of 10 elements.
      abstract List<Object> toList()
      Return elements of this Tuple wrapped in a simple List.
      String toString()  
    • Constructor Detail

      • Tuple

        public Tuple()
    • Method Detail

      • toList

        public abstract List<Object> toList()
        Return elements of this Tuple wrapped in a simple List.
        Returns:
        the list of values
      • of

        public static <T0,​T1> Tuple2<T0,​T1> of​(T0 t0,
                                                           T1 t1)
        Create a Tuple of 2 elements.
        Type Parameters:
        T0 - the the type of the first value
        T1 - the the type of the second value
        Parameters:
        t0 - the the first value
        t1 - the the second value
        Returns:
        the created tuple
      • of

        public static <T0,​T1,​T2> Tuple3<T0,​T1,​T2> of​(T0 t0,
                                                                             T1 t1,
                                                                             T2 t2)
        Create a Tuple of 3 elements.
        Type Parameters:
        T0 - the the type of the first value
        T1 - the the type of the second value
        T2 - the the type of the third value
        Parameters:
        t0 - the the first value
        t1 - the the second value
        t2 - the the third value
        Returns:
        the created tuple
      • of

        public static <T0,​T1,​T2,​T3> Tuple4<T0,​T1,​T2,​T3> of​(T0 t0,
                                                                                               T1 t1,
                                                                                               T2 t2,
                                                                                               T3 t3)
        Create a Tuple of 4 elements.
        Type Parameters:
        T0 - the type of the first value
        T1 - the type of the second value
        T2 - the type of the third value
        T3 - the type of the fourth value
        Parameters:
        t0 - the first value
        t1 - the second value
        t2 - the third value
        t3 - the fourth value
        Returns:
        the created tuple
      • of

        public static <T0,​T1,​T2,​T3,​T4> Tuple5<T0,​T1,​T2,​T3,​T4> of​(T0 t0,
                                                                                                                 T1 t1,
                                                                                                                 T2 t2,
                                                                                                                 T3 t3,
                                                                                                                 T4 t4)
        Create a Tuple of 5 elements.
        Type Parameters:
        T0 - the type of the first value
        T1 - the type of the second value
        T2 - the type of the third value
        T3 - the type of the fourth value
        T4 - the type of the 5th value
        Parameters:
        t0 - the first value
        t1 - the second value
        t2 - the third value
        t3 - the fourth value
        t4 - the 5th value
        Returns:
        the created tuple
      • of

        public static <T0,​T1,​T2,​T3,​T4,​T5> Tuple6<T0,​T1,​T2,​T3,​T4,​T5> of​(T0 t0,
                                                                                                                                   T1 t1,
                                                                                                                                   T2 t2,
                                                                                                                                   T3 t3,
                                                                                                                                   T4 t4,
                                                                                                                                   T5 t5)
        Create a Tuple of 6 elements.
        Type Parameters:
        T0 - the type of the first value
        T1 - the type of the second value
        T2 - the type of the third value
        T3 - the type of the fourth value
        T4 - the type of the 5th value
        T5 - the type of the 6th value
        Parameters:
        t0 - the first value
        t1 - the second value
        t2 - the third value
        t3 - the fourth value
        t4 - the 5th value
        t5 - the 6th value
        Returns:
        the created tuple
      • of

        public static <T0,​T1,​T2,​T3,​T4,​T5,​T6> Tuple7<T0,​T1,​T2,​T3,​T4,​T5,​T6> of​(T0 t0,
                                                                                                                                                     T1 t1,
                                                                                                                                                     T2 t2,
                                                                                                                                                     T3 t3,
                                                                                                                                                     T4 t4,
                                                                                                                                                     T5 t5,
                                                                                                                                                     T6 t6)
        Create a Tuple of 7 elements.
        Type Parameters:
        T0 - the type of the first value
        T1 - the type of the second value
        T2 - the type of the third value
        T3 - the type of the fourth value
        T4 - the type of the 5th value
        T5 - the type of the 6th value
        T6 - the type of the 7th value
        Parameters:
        t0 - the first value
        t1 - the second value
        t2 - the third value
        t3 - the fourth value
        t4 - the 5th value
        t5 - the 6th value
        t6 - the 7th value
        Returns:
        the created tuple
      • of

        public static <T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7> Tuple8<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7> of​(T0 t0,
                                                                                                                                                                       T1 t1,
                                                                                                                                                                       T2 t2,
                                                                                                                                                                       T3 t3,
                                                                                                                                                                       T4 t4,
                                                                                                                                                                       T5 t5,
                                                                                                                                                                       T6 t6,
                                                                                                                                                                       T7 t7)
        Create a Tuple of 8 elements.
        Type Parameters:
        T0 - the type of the first value
        T1 - the type of the second value
        T2 - the type of the third value
        T3 - the type of the fourth value
        T4 - the type of the 5th value
        T5 - the type of the 6th value
        T6 - the type of the 7th value
        T7 - the type of the 8th value
        Parameters:
        t0 - the first value
        t1 - the second value
        t2 - the third value
        t3 - the fourth value
        t4 - the 5th value
        t5 - the 6th value
        t6 - the 7th value
        t7 - the 8th value
        Returns:
        the created tuple
      • of

        public static <T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> Tuple9<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> of​(T0 t0,
                                                                                                                                                                                         T1 t1,
                                                                                                                                                                                         T2 t2,
                                                                                                                                                                                         T3 t3,
                                                                                                                                                                                         T4 t4,
                                                                                                                                                                                         T5 t5,
                                                                                                                                                                                         T6 t6,
                                                                                                                                                                                         T7 t7,
                                                                                                                                                                                         T8 t8)
        Create a Tuple of 9 elements.
        Type Parameters:
        T0 - the type of the first value
        T1 - the type of the second value
        T2 - the type of the third value
        T3 - the type of the fourth value
        T4 - the type of the 5th value
        T5 - the type of the 6th value
        T6 - the type of the 7th value
        T7 - the type of the 8th value
        T8 - the type of the 9th value
        Parameters:
        t0 - the first value
        t1 - the second value
        t2 - the third value
        t3 - the fourth value
        t4 - the 5th value
        t5 - the 6th value
        t6 - the 7th value
        t7 - the 8th value
        t8 - the 9th value
        Returns:
        the created tuple
      • of

        public static <T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> Tuple10<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> of​(T0 t0,
                                                                                                                                                                                                            T1 t1,
                                                                                                                                                                                                            T2 t2,
                                                                                                                                                                                                            T3 t3,
                                                                                                                                                                                                            T4 t4,
                                                                                                                                                                                                            T5 t5,
                                                                                                                                                                                                            T6 t6,
                                                                                                                                                                                                            T7 t7,
                                                                                                                                                                                                            T8 t8,
                                                                                                                                                                                                            T9 t9)
        Create a Tuple of 10 elements.
        Type Parameters:
        T0 - the type of the first value
        T1 - the type of the second value
        T2 - the type of the third value
        T3 - the type of the fourth value
        T4 - the type of the 5th value
        T5 - the type of the 6th value
        T6 - the type of the 7th value
        T7 - the type of the 8th value
        T8 - the type of the 9th value
        T9 - the type of the 10th value
        Parameters:
        t0 - the first value
        t1 - the second value
        t2 - the third value
        t3 - the fourth value
        t4 - the 5th value
        t5 - the 6th value
        t6 - the 7th value
        t7 - the 8th value
        t8 - the 9th value
        t9 - the 10th value
        Returns:
        the created tuple