Interface ConstMap

All Superinterfaces:
ConstCollection
All Known Subinterfaces:
ChangeNotifyMap, ConstChangeNotifyMap, Map
All Known Implementing Classes:
AbstractChangeNotifyMap, AbstractConstChangeNotifyMap, ChangeNotifyMapWrapper, ConstChangeNotifyVectorMap, ConstVectorMap, MapAdapter, SingleValueMap

public interface ConstMap extends ConstCollection
An immutable map.
  • Method Details

    • get

      Object get(Object key)
      Returns the value associated with the key.
      Parameters:
      key - the key
      Returns:
      the value associated with the key, null if no value is associated with the key
    • containsKey

      boolean containsKey(Object key)
      Returns true if this map contains the key.
      Parameters:
      key - the key
      Returns:
      true if this map contains the key
    • containsValue

      boolean containsValue(Object value)
      Returns true if this map contains the value.
      Parameters:
      value - the value
      Returns:
      true if this map contains the value
    • constIterator

      ConstMapIterator constIterator()
      Returns an iterator for this map.
      Returns:
      an iterator for this map