Class Tuple7<T1,T2,T3,T4,T5,T6,T7>

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>
Type Parameters:
T1 - The type of the first non-null value held by this tuple
T2 - The type of the second non-null value held by this tuple
T3 - The type of the third non-null value held by this tuple
T4 - The type of the fourth non-null value held by this tuple
T5 - The type of the fifth non-null value held by this tuple
T6 - The type of the sixth non-null value held by this tuple
T7 - The type of the seventh non-null value held by this tuple
All Implemented Interfaces:
Serializable, Iterable<Object>
Direct Known Subclasses:
Tuple8

public class Tuple7<T1,T2,T3,T4,T5,T6,T7> extends Tuple6<T1,T2,T3,T4,T5,T6>
A tuple that holds seven non-null values
Author:
Jon Brisbin, Stephane Maldini
See Also:
  • Method Details

    • getT7

      public T7 getT7()
      Type-safe way to get the seventh object of this Tuples.
      Returns:
      The seventh object
    • mapT1

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

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

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

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

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

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

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

      public @Nullable Object get(int index)
      Description copied from class: Tuple2
      Get the object at the given index.
      Overrides:
      get in class Tuple6<T1,T2,T3,T4,T5,T6>
      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 Tuple6<T1,T2,T3,T4,T5,T6>
      Returns:
      A copy of the tuple as a new Object[].
    • equals

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

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

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