Class Tuple9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9>

  • All Implemented Interfaces:
    Tuple, java.lang.Iterable<java.lang.Object>

    public class Tuple9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9>
    extends Tuple8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>
    implements Tuple
    • Method Detail

      • of

        public static <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> Tuple9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> of​(T1 a,
                                                                                                                                                                                         T2 b,
                                                                                                                                                                                         T3 c,
                                                                                                                                                                                         T4 d,
                                                                                                                                                                                         T5 e,
                                                                                                                                                                                         T6 f,
                                                                                                                                                                                         T7 g,
                                                                                                                                                                                         T8 h,
                                                                                                                                                                                         T9 i)
      • getItem9

        public T9 getItem9()
      • mapItem1

        public <T> Tuple9<T,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> mapItem1​(java.util.function.Function<T1,​T> mapper)
        Description copied from class: Tuple2
        Applies a mapper function to the left (item1) part of this Tuple2 to produce a new Tuple2. The right part (item2) is not modified.
        Overrides:
        mapItem1 in class Tuple8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>
        Type Parameters:
        T - the new type for the left item
        Parameters:
        mapper - the mapping Function for the left item
        Returns:
        the new Tuple2
      • mapItem2

        public <T> Tuple9<T1,​T,​T3,​T4,​T5,​T6,​T7,​T8,​T9> mapItem2​(java.util.function.Function<T2,​T> mapper)
        Description copied from class: Tuple2
        Applies a mapper function to the right part (item2) of this Tuple2 to produce a new Tuple2. The left (item1) part is not modified.
        Overrides:
        mapItem2 in class Tuple8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>
        Type Parameters:
        T - the new type for the right item
        Parameters:
        mapper - the mapping Function for the right item
        Returns:
        the new Tuple2
      • mapItem9

        public <T> Tuple9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T> mapItem9​(java.util.function.Function<T9,​T> mapper)
      • nth

        public java.lang.Object nth​(int index)
        Description copied from interface: Tuple
        Get the item stored at the given index.
        Specified by:
        nth in interface Tuple
        Overrides:
        nth in class Tuple8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>
        Parameters:
        index - The index of the item to retrieve.
        Returns:
        The item, can be null
      • asList

        public java.util.List<java.lang.Object> asList()
        Description copied from interface: Tuple
        Gets a List of Objects containing the items composing this Tuple
        Specified by:
        asList in interface Tuple
        Overrides:
        asList in class Tuple8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>
        Returns:
        A list containing the item of the tuple.