public interface ReferenceObjectPair<K,V> extends Pair<K,V>
Pair
; provides some additional methods that use polymorphism to avoid (un)boxing.Modifier and Type | Method and Description |
---|---|
static <K,V> ReferenceObjectPair<K,V> |
of(K left,
V right)
Returns a new type-specific immutable
Pair with given left and right value. |