com.liferay.portal.kernel.util
Class InheritableMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by 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

Constructor Summary
InheritableMap()
           
InheritableMap(java.util.Map<? extends K,? extends V> map)
           
 
Method Summary
 void clear()
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 V get(java.lang.Object key)
           
 java.util.Map<K,V> getParentMap()
           
 V remove(java.lang.Object key)
           
 void setParentMap(java.util.Map<? extends K,? extends V> parentMap)
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

InheritableMap

public InheritableMap()

InheritableMap

public InheritableMap(java.util.Map<? extends K,? extends V> map)
Method Detail

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>