Interface Product3<_1,_2,_3>
- Type Parameters:
_1
- The first element type_2
- The second element type_3
- The third element type
- All Known Subinterfaces:
Product4<_1,
,_2, _3, _4> Product5<_1,
,_2, _3, _4, _5> Product6<_1,
,_2, _3, _4, _5, _6> Product7<_1,
,_2, _3, _4, _5, _6, _7> Product8<_1,
_2, _3, _4, _5, _6, _7, _8>
A product with three values.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription_3()
Retrieve the third element.default <R> R
Destructure and apply this product to a function accepting the same number of arguments as this product's slots.invert()
Rotate the first two slots of this product.static <_1,
_2, _3>
Product3<_1, _2, _3> product
(_1 _1, _2 _2, _3 _3) Static factory method for creating a genericProduct3
.rotateL3()
Rotate the first three values of this product one slot to the left.rotateR3()
Rotate the first three values of this product one slot to the right.
-
Method Details
-
_3
_3 _3()Retrieve the third element.- Returns:
- the third element
-
into
Destructure and apply this product to a function accepting the same number of arguments as this product's slots. This can be thought of as a kind of dual to uncurrying a function and applying a product to it.- Type Parameters:
R
- the return type of the function- Parameters:
fn
- the function to apply- Returns:
- the result of applying the destructured product to the function
-
rotateL3
Rotate the first three values of this product one slot to the left.- Returns:
- the left-rotated product
-
rotateR3
Rotate the first three values of this product one slot to the right.- Returns:
- the right-rotated product
-
invert
Description copied from interface:Product2
Rotate the first two slots of this product. -
product
Static factory method for creating a genericProduct3
.- Type Parameters:
_1
- the first slot type_2
- the second slot type_3
- the third slot type- Parameters:
_1
- the first slot_2
- the second slot_3
- the third slot- Returns:
- the
Product3
-