Class Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>

java.lang.Object
reactor.util.function.Tuple2<T1,T2>
reactor.util.function.Tuple3<T1,T2,T3>
reactor.util.function.Tuple4<T1,T2,T3,T4>
reactor.util.function.Tuple5<T1,T2,T3,T4,T5>
reactor.util.function.Tuple6<T1,T2,T3,T4,T5,T6>
reactor.util.function.Tuple7<T1,T2,T3,T4,T5,T6,T7>
reactor.util.function.Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>
Type Parameters:
T1 - The type of the first value held by this tuple
T2 - The type of the second value held by this tuple
T3 - The type of the third value held by this tuple
T4 - The type of the fourth value held by this tuple
T5 - The type of the fifth value held by this tuple
T6 - The type of the sixth value held by this tuple
T7 - The type of the seventh value held by this tuple
T8 - The type of the eighth value held by this tuple
All Implemented Interfaces:
Serializable, Iterable<Object>

public class Tuple8<T1,T2,T3,T4,T5,T6,T7,T8> extends Tuple7<T1,T2,T3,T4,T5,T6,T7>
A tuple that holds eight values
Author:
Jon Brisbin, Stephane Maldini
See Also:
  • Method Details

    • getT8

      public T8 getT8()
      Type-safe way to get the eighth object of this Tuples.
      Returns:
      The eighth object
    • mapT1

      public <R> Tuple8<R,T2,T3,T4,T5,T6,T7,T8> mapT1(Function<T1,R> mapper)
      Map the 1st part (T1) of this Tuple8 into a different value and type, keeping the other parts.
      Overrides:
      mapT1 in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Type Parameters:
      R - the new type for the T1 part
      Parameters:
      mapper - the mapping Function for the T1 part
      Returns:
      a new Tuple8 with a different T1 value
    • mapT2

      public <R> Tuple8<T1,R,T3,T4,T5,T6,T7,T8> mapT2(Function<T2,R> mapper)
      Map the 2nd part (T2) of this Tuple8 into a different value and type, keeping the other parts.
      Overrides:
      mapT2 in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Type Parameters:
      R - the new type for the T2 part
      Parameters:
      mapper - the mapping Function for the T2 part
      Returns:
      a new Tuple8 with a different T2 value
    • mapT3

      public <R> Tuple8<T1,T2,R,T4,T5,T6,T7,T8> mapT3(Function<T3,R> mapper)
      Map the 3rd part (T3) of this Tuple8 into a different value and type, keeping the other parts.
      Overrides:
      mapT3 in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Type Parameters:
      R - the new type for the T3 part
      Parameters:
      mapper - the mapping Function for the T3 part
      Returns:
      a new Tuple8 with a different T3 value
    • mapT4

      public <R> Tuple8<T1,T2,T3,R,T5,T6,T7,T8> mapT4(Function<T4,R> mapper)
      Map the 4th part (T4) of this Tuple8 into a different value and type, keeping the other parts.
      Overrides:
      mapT4 in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Type Parameters:
      R - the new type for the T4 part
      Parameters:
      mapper - the mapping Function for the T4 part
      Returns:
      a new Tuple8 with a different T4 value
    • mapT5

      public <R> Tuple8<T1,T2,T3,T4,R,T6,T7,T8> mapT5(Function<T5,R> mapper)
      Map the 5th part (T5) of this Tuple8 into a different value and type, keeping the other parts.
      Overrides:
      mapT5 in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Type Parameters:
      R - the new type for the T5 part
      Parameters:
      mapper - the mapping Function for the T5 part
      Returns:
      a new Tuple8 with a different T5 value
    • mapT6

      public <R> Tuple8<T1,T2,T3,T4,T5,R,T7,T8> mapT6(Function<T6,R> mapper)
      Map the 6th part (T6) of this Tuple8 into a different value and type, keeping the other parts.
      Overrides:
      mapT6 in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Type Parameters:
      R - the new type for the T6 part
      Parameters:
      mapper - the mapping Function for the T6 part
      Returns:
      a new Tuple8 with a different T6 value
    • mapT7

      public <R> Tuple8<T1,T2,T3,T4,T5,T6,R,T8> mapT7(Function<T7,R> mapper)
      Map the 7th part (T7) of this Tuple8 into a different value and type, keeping the other parts.
      Overrides:
      mapT7 in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Type Parameters:
      R - the new type for the T7 part
      Parameters:
      mapper - the mapping Function for the T7 part
      Returns:
      a new Tuple8 with a different T7 value
    • mapT8

      public <R> Tuple8<T1,T2,T3,T4,T5,T6,T7,R> mapT8(Function<T8,R> mapper)
      Map the 8th part (t8) of this Tuple8 into a different value and type, keeping the other parts.
      Type Parameters:
      R - the new type for the T8 part
      Parameters:
      mapper - the mapping Function for the T8 part
      Returns:
      a new Tuple8 with a different T8 value
    • get

      public @Nullable Object get(int index)
      Description copied from class: Tuple2
      Get the object at the given index.
      Overrides:
      get in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Parameters:
      index - The index of the object to retrieve. Starts at 0.
      Returns:
      The object or null if out of bounds.
    • toArray

      public Object[] toArray()
      Description copied from class: Tuple2
      Turn this Tuple into a plain Object[]. The array isn't tied to this Tuple but is a copy.
      Overrides:
      toArray in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Returns:
      A copy of the tuple as a new Object[].
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
    • size

      public int size()
      Description copied from class: Tuple2
      Return the number of elements in this Tuples.
      Overrides:
      size in class Tuple7<T1,T2,T3,T4,T5,T6,T7>
      Returns:
      The size of this Tuples.