Class Tuple6<T1,T2,T3,T4,T5,T6>

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>
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
All Implemented Interfaces:
Serializable, Iterable<Object>
Direct Known Subclasses:
Tuple7

public class Tuple6<T1,T2,T3,T4,T5,T6> extends Tuple5<T1,T2,T3,T4,T5>
A tuple that holds six values
Author:
Jon Brisbin, Stephane Maldini
See Also:
  • Method Details

    • getT6

      public T6 getT6()
      Type-safe way to get the sixth object of this Tuples.
      Returns:
      The sixth object
    • mapT1

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

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

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

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

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

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

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

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

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

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