org.apache.accumulo.server.util
Class DefaultMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
org.apache.accumulo.server.util.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
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
DefaultMap
public DefaultMap(V dfault)
get
public V get(Object key)
- Specified by:
get
in interface Map<K,V>
- Overrides:
get
in class HashMap<K,V>
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.