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
public interface IPair<L,R> extends Map.Entry<L,R>, IClone<IPair<L,R>>, Serializable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LgetLeft()Gets the left element.RgetRight()Gets the right element.LsetLeft(L left)Sets the left element, returning the previous value.RsetRight(R right)Sets the right element, returning the previous value.
-
-
-
Method Detail
-
getLeft
L getLeft()
Gets the left element.- Returns:
- the left element
-
getRight
R getRight()
Gets the right element.- Returns:
- the right element
-
setLeft
L setLeft(L left)
Sets the left element, returning the previous value.- Parameters:
left- the value to set on the left- Returns:
- the previous value
-
-