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:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<K,V>
public class InheritableMap<K,V>
- extends java.util.HashMap<K,V>
- Author:
- Michael Young, Connor McKay, Shuyang Zhou
- See Also:
- Serialized Form
| Methods inherited from class java.util.HashMap |
clone, entrySet, isEmpty, keySet, put, putAll, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
InheritableMap
public InheritableMap()
InheritableMap
public InheritableMap(java.util.Map<? extends K,? extends V> map)
clear
public void clear()
- Specified by:
clear in interface java.util.Map<K,V>- Overrides:
clear in class java.util.HashMap<K,V>
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey in interface java.util.Map<K,V>- Overrides:
containsKey in class java.util.HashMap<K,V>
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue in interface java.util.Map<K,V>- Overrides:
containsValue in class java.util.HashMap<K,V>
get
public V get(java.lang.Object key)
- Specified by:
get in interface java.util.Map<K,V>- Overrides:
get in class java.util.HashMap<K,V>
getParentMap
public java.util.Map<K,V> getParentMap()
remove
public V remove(java.lang.Object key)
- Specified by:
remove in interface java.util.Map<K,V>- Overrides:
remove in class java.util.HashMap<K,V>
setParentMap
public void setParentMap(java.util.Map<? extends K,? extends V> parentMap)
toString
public java.lang.String toString()
- Overrides:
toString in class java.util.AbstractMap<K,V>