Interface ARI1IntMapMutableType<T>

Type Parameters:
T - The type of values
All Superinterfaces:
ARI1IntMapReadableType<T>

public interface ARI1IntMapMutableType<T> extends ARI1IntMapReadableType<T>
A mutable map of unboxed integers to values.
  • Method Summary

    Modifier and Type
    Method
    Description
    put(int key, T value)
    Associate a value with a key, replacing any existing mapping.
    remove(int key)
    Remove a mapping.

    Methods inherited from interface ARI1IntMapReadableType

    get, isEmpty, size, values
  • Method Details

    • put

      T put(int key, T value)
      Associate a value with a key, replacing any existing mapping.
      Parameters:
      key - The key
      value - The value
      Returns:
      The old key, if any
    • remove

      T remove(int key)
      Remove a mapping.
      Parameters:
      key - The key
      Returns:
      The old value, if any