Package java.util
Class HashMap

Public Method entrySet

Set entrySet()

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns a collection view of the mappings contained in this map. Each element in the returned collection is a Map.Entry. The collection is backed by the map, so changes to the map are reflected in the collection, and vice-versa. The collection supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Collection.remove, removeAll, retainAll, and clear operations. It does not support the add or addAll operations.

Example

   HashMap map = new HashMap();
   Integer i = new Integer(0);
   map.put(i, "value");

   Set set = map.entrySet();
   Logger.log("entrySet: " + set);

The example above creates a new map and assigns it to a set.