Package com.quartetfs.fwk
Interface IPair<L,R>
- Type Parameters:
L- type of the left elementR- type of the right element
- All Superinterfaces:
Cloneable,IClone<IPair<L,,R>> Map.Entry<L,,R> Serializable
- All Known Implementing Classes:
Pair
A pair of two elements, identified as 'left' and 'right'.
A pair can also be seen as a Map.Entry, in that case the left value is seen as the entry
key, and the right value is seen as the entry value.
- Author:
- ActiveViam
-
Method Summary
-
Method Details
-
getLeft
L getLeft()Gets the left element.- Returns:
- the left element
-
getRight
R getRight()Gets the right element.- Returns:
- the right element
-
setLeft
Sets the left element, returning the previous value.- Parameters:
left- the value to set on the left- Returns:
- the previous value
-
setRight
Sets the right element, returning the previous value.- Parameters:
right- the value to set on the right- Returns:
- the previous value
-