com.liferay.portal.kernel.util
Class InheritableMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
com.liferay.portal.kernel.util.InheritableMap<K,V>
- All Implemented Interfaces:
- Serializable, Cloneable, Map<K,V>
public class InheritableMap<K,V>
- extends HashMap<K,V>
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.util.HashMap |
clone, compute, computeIfAbsent, computeIfPresent, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values |
InheritableMap
public InheritableMap()
InheritableMap
public InheritableMap(Map<? extends K,? extends V> map)
clear
public void clear()
- Specified by:
clear in interface Map<K,V>- Overrides:
clear in class HashMap<K,V>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface Map<K,V>- Overrides:
containsKey in class HashMap<K,V>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map<K,V>- Overrides:
containsValue in class HashMap<K,V>
get
public V get(Object key)
- Specified by:
get in interface Map<K,V>- Overrides:
get in class HashMap<K,V>
getParentMap
public Map<K,V> getParentMap()
remove
public V remove(Object key)
- Specified by:
remove in interface Map<K,V>- Overrides:
remove in class HashMap<K,V>
setParentMap
public void setParentMap(Map<? extends K,? extends V> parentMap)
toString
public String toString()
- Overrides:
toString in class AbstractMap<K,V>