Class DefaultMap<K,​V>

  • All Implemented Interfaces:
    Serializable, Cloneable, Map<K,​V>

    public class DefaultMap<K,​V>
    extends HashMap<K,​V>
    A HashMap that returns a default value if the key is not stored in the map. A zero-argument constructor of the default object's class is used, otherwise the default object is used.
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultMap

        public DefaultMap​(V dfault)