LeftT - Left typeRightT - Right Typepublic final class Pair<LeftT,RightT> extends Object
| Modifier and Type | Method and Description |
|---|---|
<ReturnT> ReturnT |
apply(BiFunction<LeftT,RightT,ReturnT> function)
Apply the function to both the left and right values and return the transformed result.
|
boolean |
equals(Object obj) |
int |
hashCode() |
LeftT |
left() |
static <LeftT,RightT> |
of(LeftT left,
RightT right) |
RightT |
right() |
String |
toString() |
public LeftT left()
public RightT right()
public <ReturnT> ReturnT apply(BiFunction<LeftT,RightT,ReturnT> function)
ReturnT - Transformed return type of BiFunction.function - Function to apply on the PairBiFunction applied on left and right values of the pair.public static <LeftT,RightT> Pair<LeftT,RightT> of(LeftT left, RightT right)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.