Interface ReferenceObjectPair<K,V>

All Superinterfaces:
Pair<K,V>
All Known Implementing Classes:
ReferenceObjectImmutablePair, ReferenceObjectMutablePair

public interface ReferenceObjectPair<K,V> extends Pair<K,V>
A type-specific Pair; provides some additional methods that use polymorphism to avoid (un)boxing.
  • Method Details

    • of

      static <K, V> ReferenceObjectPair<K,V> of(K left, V right)
      Returns a new type-specific immutable Pair with given left and right value.
      Parameters:
      left - the left value.
      right - the right value.