This implementation refers to the elements as 'first' and 'second'. The class also implements the {@code Map.Entry} interface where the key is 'first'and the value is 'second'.
Although the implementation is immutable, there is no restriction on the objects that may be stored. If mutable objects are stored in the pair, then the pair itself effectively becomes mutable. @param < A> the first element type @param < B> the second element type
|
|