Interface ByteReferencePair<V>

All Superinterfaces:
it.unimi.dsi.fastutil.Pair<Byte,V>
All Known Implementing Classes:
ByteReferenceImmutablePair, ByteReferenceMutablePair

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

    Modifier and Type
    Method
    Description
    default Byte
    Deprecated.
    Please use the corresponding type-specific method instead.
    first(byte l)
    Sets the left element of this pair (optional operation).
    Deprecated.
    Please use the corresponding type-specific method instead.
    default byte
    Returns the left element of this pair.
    default Byte
    key()
    Deprecated.
    Please use the corresponding type-specific method instead.
    key(byte l)
    Sets the left element of this pair (optional operation).
    key(Byte l)
    Deprecated.
    default byte
    Returns the left element of this pair.
    default Byte
    Deprecated.
    Please use the corresponding type-specific method instead.
    left(byte l)
    Sets the left element of this pair (optional operation).
    Deprecated.
    Please use the corresponding type-specific method instead.
    byte
    Returns the left element of this pair.
    static <V> ByteReferencePair<V>
    of(byte 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

    right, right, second, second, value, value
  • Method Details

    • leftByte

      byte leftByte()
      Returns the left element of this pair.
      Returns:
      the left element of this pair.
    • left

      @Deprecated default Byte left()
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      left in interface it.unimi.dsi.fastutil.Pair<Byte,V>
    • left

      default ByteReferencePair<V> left(byte l)
      Sets the left element of this pair (optional operation).
      Parameters:
      l - a new value for the left element.
    • left

      @Deprecated default ByteReferencePair<V> left(Byte l)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      left in interface it.unimi.dsi.fastutil.Pair<Byte,V>
    • firstByte

      default byte firstByte()
      Returns the left element of this pair.
      Returns:
      the left element of this pair.
    • first

      @Deprecated default Byte first()
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      first in interface it.unimi.dsi.fastutil.Pair<Byte,V>
    • first

      default ByteReferencePair<V> first(byte l)
      Sets the left element of this pair (optional operation).
      Parameters:
      l - a new value for the left element.
    • first

      @Deprecated default ByteReferencePair<V> first(Byte l)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      first in interface it.unimi.dsi.fastutil.Pair<Byte,V>
    • keyByte

      default byte keyByte()
      Returns the left element of this pair.
      Returns:
      the left element of this pair.
    • key

      @Deprecated default Byte key()
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      key in interface it.unimi.dsi.fastutil.Pair<Byte,V>
    • key

      default ByteReferencePair<V> key(byte l)
      Sets the left element of this pair (optional operation).
      Parameters:
      l - a new value for the left element.
    • key

      @Deprecated default ByteReferencePair<V> key(Byte l)
      Deprecated.
      Specified by:
      key in interface it.unimi.dsi.fastutil.Pair<Byte,V>
    • of

      static <V> ByteReferencePair<V> of(byte 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.