Class Quartet<U,V,W,X>
java.lang.Object
cloud.commandframework.types.tuples.Quartet<U,V,W,X>
- Type Parameters:
U
- First typeV
- Second typeW
- Third typeX
- Fourth type
- All Implemented Interfaces:
Tuple
Immutable generic 5-tuple
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@NonNull U
getFirst()
Get the first value@NonNull X
Get the fourth value@NonNull V
Get the second valueint
getSize()
Get the tuple size@NonNull W
getThird()
Get the third valueint
hashCode()
static <U, V, W, X> @NonNull Quartet<@NonNull U,@NonNull V,@NonNull W,@NonNull X>
of(@NonNull U first, @NonNull V second, @NonNull W third, @NonNull X fourth)
Create a new 4-tuple@NonNull Object @NonNull []
toArray()
Turn the tuple into a type erased arraytoString()
-
Constructor Details
-
Quartet
-
-
Method Details
-
of
public static <U, V, W, X> @NonNull Quartet<@NonNull U,@NonNull V,@NonNull W,@NonNull X> of(@NonNull U first, @NonNull V second, @NonNull W third, @NonNull X fourth)Create a new 4-tuple- Type Parameters:
U
- First typeV
- Second typeW
- Third typeX
- Fourth type- Parameters:
first
- First valuesecond
- Second valuethird
- Third valuefourth
- Fourth value- Returns:
- Created quartet
-
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
-
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
-