Package java.util
Class HashMap

Public Method isEmpty

boolean isEmpty()

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns the number of key value mappings in this map.

Example

   HashMap map = new HashMap();

   if (map.isEmpty())
      Logger.log("This map is empty!");

The example above creates a new map, verifies that the map is empty and writes the result to the logger.