Interface Map

All Superinterfaces:
Collection, ConstCollection, ConstMap
All Known Subinterfaces:
ChangeNotifyMap
All Known Implementing Classes:
AbstractChangeNotifyMap, ChangeNotifyMapWrapper, MapAdapter

public interface Map extends ConstMap, Collection
A map.
  • Method Details

    • put

      Object put(Object key, Object value)
      Associate a key with a value. This will overwrite any existing association.
      Parameters:
      key - the key
      value - the value
      Returns:
      the old value associated with this key, null if no value existed
    • remove

      Object remove(Object key)
      Removes a key and it's value.
      Parameters:
      key - the key
      Returns:
      the value associated with the key, null if no value existed
    • iterator

      MapIterator iterator()
      Returns an iterator for this map.
      Returns:
      an iterator for this map