Interface ObjectReferencePair<K,V>

All Superinterfaces:
it.unimi.dsi.fastutil.Pair<K,V>
All Known Implementing Classes:
ObjectReferenceImmutablePair, ObjectReferenceMutablePair

public interface ObjectReferencePair<K,V> extends it.unimi.dsi.fastutil.Pair<K,V>
A type-specific Pair; provides some additional methods that use polymorphism to avoid (un)boxing.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <K, V> ObjectReferencePair<K,V>
    of(K left, V right)
    Returns a new type-specific immutable Pair with given left and right value.

    Methods inherited from interface it.unimi.dsi.fastutil.Pair

    first, first, key, key, left, left, right, right, second, second, value, value
  • Method Details

    • of

      static <K, V> ObjectReferencePair<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.