Package org.incendo.cloud.type.tuple
Class Quintet<U,V,W,X,Y>
java.lang.Object
org.incendo.cloud.type.tuple.Quintet<U,V,W,X,Y>
- Type Parameters:
U- First typeV- Second typeW- Third typeX- Fourth typeY- Fifth type
- All Implemented Interfaces:
Tuple
Immutable generic 5-tuple
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfifth()Get the fifth valuefirst()Get the first valuefourth()Get the fourth valuefinal inthashCode()Create a new 5-tuplesecond()Get the second valuefinal intsize()Returns the tuple size.third()Get the third valuetoArray()Turns the tuple into a type erased array.final StringtoString()
-
Constructor Details
-
Quintet
-
-
Method Details
-
of
public static <U,V, @NonNull Quintet<@NonNull U,W, X, Y> @NonNull V, of@NonNull W, @NonNull X, @NonNull Y> (@NonNull U first, @NonNull V second, @NonNull W third, @NonNull X fourth, @NonNull Y fifth) Create a new 5-tuple- Type Parameters:
U- First typeV- Second typeW- Third typeX- Fourth typeY- Fifth type- Parameters:
first- First valuesecond- Second valuethird- Third valuefourth- Fourth valuefifth- fifth value- Returns:
- Created quintet
-
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
-
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.
-