Class Quintet<U,V,W,X,Y>
java.lang.Object
cloud.commandframework.types.tuples.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
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final @NonNull Y
getFifth()
Get the fifth valuefinal @NonNull U
getFirst()
Get the first valuefinal @NonNull X
Get the fourth valuefinal @NonNull V
Get the second valuefinal int
getSize()
Get the tuple sizefinal @NonNull W
getThird()
Get the third valuefinal int
hashCode()
static <U,
V, W, X, Y>
@NonNull Quintet<@NonNull U,@NonNull V, @NonNull W, @NonNull X, @NonNull Y> of
(@NonNull U first, @NonNull V second, @NonNull W third, @NonNull X fourth, @NonNull Y fifth) Create a new 5-tuplefinal @NonNull Object @NonNull []
toArray()
Turn the tuple into a type erased arrayfinal String
toString()
-
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
-
getFirst
Get the first value- Returns:
- First value
-
getSecond
Get the second value- Returns:
- Second value
-
getThird
Get the third value- Returns:
- Third value
-
getFourth
Get the fourth value- Returns:
- Fourth value
-
getFifth
Get the fifth value- Returns:
- Fifth value
-
equals
-
hashCode
public final int hashCode() -
toString
-
getSize
public final int getSize()Description copied from interface:Tuple
Get the tuple size -
toArray
Description copied from interface:Tuple
Turn the tuple into a type erased array
-