_1
- The first element type_2
- The second element typepublic interface Product2<_1,_2> extends Map.Entry<_1,_2>
For more information, read about products.
Tuple2
Modifier and Type | Method and Description |
---|---|
_1 |
_1()
Retrieve the first element.
|
_2 |
_2()
Retrieve the second element.
|
default _1 |
getKey() |
default _2 |
getValue() |
default <R> R |
into(Fn2<? super _1,? super _2,? extends R> fn)
Destructure and apply this product to a function accepting the same number of arguments as this product's
slots.
|
default Product2<_2,_1> |
invert()
Rotate the first two slots of this product.
|
static <_1,_2> Product2<_1,_2> |
product(_1 _1,
_2 _2)
Static factory method for creating a generic
Product2 . |
default _2 |
setValue(_2 value) |
comparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode
_1 _1()
_2 _2()
default <R> R into(Fn2<? super _1,? super _2,? extends R> fn)
R
- the return type of the functionfn
- the function to applydefault Product2<_2,_1> invert()