public class InheritableMap<K,V> extends HashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
InheritableMap() |
InheritableMap(Map<? extends K,? extends V> map) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
V |
get(Object key) |
Map<K,V> |
getParentMap() |
V |
remove(Object key) |
void |
setParentMap(Map<? extends K,? extends V> parentMap) |
String |
toString() |
clone, compute, computeIfAbsent, computeIfPresent, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
equals, hashCode
public void clear()
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
containsKey
in class HashMap<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
containsValue
in class HashMap<K,V>
public String toString()
toString
in class AbstractMap<K,V>