Package reactor.util.function
Class Tuple4<T1,T2,T3,T4>
java.lang.Object
reactor.util.function.Tuple2<T1,T2>
reactor.util.function.Tuple3<T1,T2,T3>
reactor.util.function.Tuple4<T1,T2,T3,T4>
- Type Parameters:
T1- The type of the first non-null value held by this tupleT2- The type of the second non-null value held by this tupleT3- The type of the third non-null value held by this tupleT4- The type of the fourth non-null value held by this tuple
- All Implemented Interfaces:
Serializable,Iterable<Object>
- Direct Known Subclasses:
Tuple5
A tuple that holds four non-null values
- Author:
- Jon Brisbin, Stephane Maldini
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) Get the object at the given index.getT4()Type-safe way to get the fourth object of thisTuples.inthashCode()Map the 1st part (T1) of thisTuple4into a different value and type, keeping the other parts.Map the 2nd part (T2) of thisTuple4into a different value and type, keeping the other parts.Map the 3rd part (T3) of thisTuple4into a different value and type, keeping the other parts.Map the 4th part (T4) of thisTuple4into a different value and type, keeping the other parts.intsize()Return the number of elements in this Tuples.Object[]toArray()Turn thisTupleinto a plainObject[].Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getT4
Type-safe way to get the fourth object of thisTuples.- Returns:
- The fourth object
-
mapT1
Map the 1st part (T1) of thisTuple4into a different value and type, keeping the other parts. -
mapT2
Map the 2nd part (T2) of thisTuple4into a different value and type, keeping the other parts. -
mapT3
Map the 3rd part (T3) of thisTuple4into a different value and type, keeping the other parts. -
mapT4
Map the 4th part (T4) of thisTuple4into a different value and type, keeping the other parts. -
get
Description copied from class:Tuple2Get the object at the given index. -
toArray
Description copied from class:Tuple2Turn thisTupleinto a plainObject[]. The array isn't tied to this Tuple but is a copy. -
equals
-
hashCode
public int hashCode() -
size
public int size()Description copied from class:Tuple2Return the number of elements in this Tuples.
-