Class Tuple<TP>

    • Method Detail

      • arity

        public abstract int arity()
        Returns:
      • anyNull

        public abstract boolean anyNull()
        Returns:
        true, if successful
      • allNull

        public abstract boolean allNull()
        Returns:
        true, if successful
      • contains

        public abstract boolean contains​(Object objToFind)
        Parameters:
        objToFind -
        Returns:
      • toArray

        public abstract Object[] toArray()
        Returns:
      • toArray

        public abstract <A> A[] toArray​(A[] a)
        Type Parameters:
        A -
        Parameters:
        a -
        Returns:
      • stream

        public Stream<TP> stream()
        Returns:
      • of

        public static <T1> Tuple.Tuple1<T1> of​(T1 _1)
        Type Parameters:
        T1 -
        Parameters:
        _1 - the 1
        Returns:
      • of

        public static <T1,​T2> Tuple.Tuple2<T1,​T2> of​(T1 _1,
                                                                 T2 _2)
        Type Parameters:
        T1 -
        T2 -
        Parameters:
        _1 - the 1
        _2 - the 2
        Returns:
      • of

        public static <T1,​T2,​T3> Tuple.Tuple3<T1,​T2,​T3> of​(T1 _1,
                                                                                   T2 _2,
                                                                                   T3 _3)
        Type Parameters:
        T1 -
        T2 -
        T3 -
        Parameters:
        _1 - the 1
        _2 - the 2
        _3 - the 3
        Returns:
      • of

        public static <T1,​T2,​T3,​T4> Tuple.Tuple4<T1,​T2,​T3,​T4> of​(T1 _1,
                                                                                                     T2 _2,
                                                                                                     T3 _3,
                                                                                                     T4 _4)
        Type Parameters:
        T1 -
        T2 -
        T3 -
        T4 -
        Parameters:
        _1 - the 1
        _2 - the 2
        _3 - the 3
        _4 - the 4
        Returns:
      • of

        public static <T1,​T2,​T3,​T4,​T5> Tuple.Tuple5<T1,​T2,​T3,​T4,​T5> of​(T1 _1,
                                                                                                                       T2 _2,
                                                                                                                       T3 _3,
                                                                                                                       T4 _4,
                                                                                                                       T5 _5)
        Type Parameters:
        T1 -
        T2 -
        T3 -
        T4 -
        T5 -
        Parameters:
        _1 - the 1
        _2 - the 2
        _3 - the 3
        _4 - the 4
        _5 - the 5
        Returns:
      • of

        public static <T1,​T2,​T3,​T4,​T5,​T6> Tuple.Tuple6<T1,​T2,​T3,​T4,​T5,​T6> of​(T1 _1,
                                                                                                                                         T2 _2,
                                                                                                                                         T3 _3,
                                                                                                                                         T4 _4,
                                                                                                                                         T5 _5,
                                                                                                                                         T6 _6)
        Type Parameters:
        T1 -
        T2 -
        T3 -
        T4 -
        T5 -
        T6 -
        Parameters:
        _1 - the 1
        _2 - the 2
        _3 - the 3
        _4 - the 4
        _5 - the 5
        _6 - the 6
        Returns:
      • of

        public static <T1,​T2,​T3,​T4,​T5,​T6,​T7> Tuple.Tuple7<T1,​T2,​T3,​T4,​T5,​T6,​T7> of​(T1 _1,
                                                                                                                                                           T2 _2,
                                                                                                                                                           T3 _3,
                                                                                                                                                           T4 _4,
                                                                                                                                                           T5 _5,
                                                                                                                                                           T6 _6,
                                                                                                                                                           T7 _7)
        Type Parameters:
        T1 -
        T2 -
        T3 -
        T4 -
        T5 -
        T6 -
        T7 -
        Parameters:
        _1 - the 1
        _2 - the 2
        _3 - the 3
        _4 - the 4
        _5 - the 5
        _6 - the 6
        _7 - the 7
        Returns:
      • of

        public static <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> Tuple.Tuple8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> of​(T1 _1,
                                                                                                                                                                             T2 _2,
                                                                                                                                                                             T3 _3,
                                                                                                                                                                             T4 _4,
                                                                                                                                                                             T5 _5,
                                                                                                                                                                             T6 _6,
                                                                                                                                                                             T7 _7,
                                                                                                                                                                             T8 _8)
        Type Parameters:
        T1 -
        T2 -
        T3 -
        T4 -
        T5 -
        T6 -
        T7 -
        T8 -
        Parameters:
        _1 - the 1
        _2 - the 2
        _3 - the 3
        _4 - the 4
        _5 - the 5
        _6 - the 6
        _7 - the 7
        _8 - the 8
        Returns:
      • of

        public static <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> Tuple.Tuple9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> of​(T1 _1,
                                                                                                                                                                                               T2 _2,
                                                                                                                                                                                               T3 _3,
                                                                                                                                                                                               T4 _4,
                                                                                                                                                                                               T5 _5,
                                                                                                                                                                                               T6 _6,
                                                                                                                                                                                               T7 _7,
                                                                                                                                                                                               T8 _8,
                                                                                                                                                                                               T9 _9)
        Type Parameters:
        T1 -
        T2 -
        T3 -
        T4 -
        T5 -
        T6 -
        T7 -
        T8 -
        T9 -
        Parameters:
        _1 - the 1
        _2 - the 2
        _3 - the 3
        _4 - the 4
        _5 - the 5
        _6 - the 6
        _7 - the 7
        _8 - the 8
        _9 - the 9
        Returns:
      • from

        public static <K,​V> Tuple.Tuple2<K,​V> from​(Map.Entry<K,​V> entry)
        Type Parameters:
        K - the key type
        V - the value type
        Parameters:
        entry -
        Returns:
      • from

        public static <TP extends Tuple<TP>> TP from​(Object[] a)
        Type Parameters:
        T -
        Parameters:
        a -
        Returns:
      • from

        public static <TP extends Tuple<TP>> TP from​(Collection<?> c)
        Type Parameters:
        T -
        Parameters:
        c -
        Returns: