Package software.amazon.awssdk.utils
Class Pair<LeftT,RightT> 
java.lang.Object
software.amazon.awssdk.utils.Pair<LeftT,RightT> 
- Type Parameters:
 LeftT- Left typeRightT- Right Type
Simple struct of two values, possibly of different types.
- 
Method Summary
Modifier and TypeMethodDescription<ReturnT> ReturnTapply(BiFunction<LeftT, RightT, ReturnT> function) Apply the function to both the left and right values and return the transformed result.booleaninthashCode()left()static <LeftT,RightT> 
Pair<LeftT, RightT> of(LeftT left, RightT right) right()toString() 
- 
Method Details
- 
left
- Returns:
 - Left value
 
 - 
right
- Returns:
 - Right value
 
 - 
apply
Apply the function to both the left and right values and return the transformed result.- Type Parameters:
 ReturnT- Transformed return type ofBiFunction.- Parameters:
 function- Function to apply on thePair- Returns:
 - Result of 
BiFunctionapplied on left and right values of the pair. 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 - 
of
 
 -