Package org.incendo.cloud.type.tuple
Class Sextet<U,V,W,X,Y,Z>
java.lang.Object
org.incendo.cloud.type.tuple.Sextet<U,V,W,X,Y,Z>
- Type Parameters:
U- First typeV- Second typeW- Third typeX- Fourth typeY- Fifth typeZ- Sixth type
- All Implemented Interfaces:
Tuple
Immutable generic 6-tuple
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfifth()Get the fifth valuefirst()Get the first valuefourth()Get the fourth valuefinal inthashCode()static <U,V, W, X, Y, Z>
@NonNull Sextet<@NonNull U, @NonNull V, @NonNull W, @NonNull X, @NonNull Y, @NonNull Z> of(@NonNull U first, @NonNull V second, @NonNull W third, @NonNull X fourth, @NonNull Y fifth, @NonNull Z sixth) Create a new 6-tuplesecond()Get the second valuesixth()Get the sixth valuefinal intsize()Returns the tuple size.third()Get the third valuetoArray()Turns the tuple into a type erased array.final StringtoString()
-
Constructor Details
-
Sextet
-
-
Method Details
-
of
public static <U,V, @NonNull Sextet<@NonNull U,W, X, Y, Z> @NonNull V, of@NonNull W, @NonNull X, @NonNull Y, @NonNull Z> (@NonNull U first, @NonNull V second, @NonNull W third, @NonNull X fourth, @NonNull Y fifth, @NonNull Z sixth) Create a new 6-tuple- Type Parameters:
U- First typeV- Second typeW- Third typeX- Fourth typeY- Fifth typeZ- Sixth type- Parameters:
first- First valuesecond- Second valuethird- Third valuefourth- Fourth valuefifth- fifth valuesixth- Sixth value- Returns:
- Created sextet
-
first
Get the first value- Returns:
- First value
-
second
Get the second value- Returns:
- Second value
-
third
Get the third value- Returns:
- Third value
-
fourth
Get the fourth value- Returns:
- Fourth value
-
fifth
Get the fifth value- Returns:
- Fifth value
-
sixth
Get the sixth value- Returns:
- Sixth value
-
equals
-
hashCode
public final int hashCode() -
toString
-
size
public final int size()Description copied from interface:TupleReturns the tuple size. -
toArray
Description copied from interface:TupleTurns the tuple into a type erased array.
-