A pair consisting of two elements.
This class is an abstract implementation defining the basic API. It refers to the elements as 'left' and 'right'. It also implements the {@code Map.Entry} interface where the key is 'left' and the value is 'right'.
Subclass implementations may be mutable or immutable. However, there is no restriction on the type of the stored objects that may be stored. If mutable objects are stored in the pair, then the pair itself effectively becomes mutable.
@param < L> the left element type @param < R> the right element type @since Lang 3.0 @version $Id: Pair.java 1436770 2013-01-22 07:09:45Z ggregory $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|