Interface CharObjectMap<V>

Type Parameters:
V - the value type stored in the map.
All Superinterfaces:
Map<Character,V>
All Known Implementing Classes:
CharCollections.EmptyMap, CharCollections.UnmodifiableMap, CharObjectHashMap, Http2Settings

public interface CharObjectMap<V> extends Map<Character,V>
Interface for a primitive map that uses chars as keys.
  • Method Details

    • get

      V get(char key)
      Gets the value in the map with the specified key.
      Parameters:
      key - the key whose associated value is to be returned.
      Returns:
      the value or null if the key was not found in the map.
    • put

      V put(char key, V value)
      Puts the given entry into the map.
      Parameters:
      key - the key of the entry.
      value - the value of the entry.
      Returns:
      the previous value for this key or null if there was no previous mapping.
    • remove

      V remove(char key)
      Removes the entry with the specified key.
      Parameters:
      key - the key for the entry to be removed from this map.
      Returns:
      the previous value for the key, or null if there was no mapping.
    • entries

      Gets an iterable to traverse over the primitive entries contained in this map. As an optimization, the CharObjectMap.PrimitiveEntrys returned by the
      invalid reference
      Iterator
      may change as the
      invalid reference
      Iterator
      progresses. The caller should not rely on CharObjectMap.PrimitiveEntry key/value stability.
    • containsKey

      boolean containsKey(char key)
      Indicates whether or not this map contains a value for the specified key.