org.apache.myfaces.extensions.cdi.core.impl.util
Class UnmodifiableMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by org.apache.myfaces.extensions.cdi.core.impl.util.UnmodifiableMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public abstract class UnmodifiableMap<K,V>
extends HashMap<K,V>

Helper for the JSF-Map trick in case of expressions which are read-only.

Author:
Gerhard Petracek
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
UnmodifiableMap()
           
 
Method Summary
 void clear()
           
 V put(K key, V value)
           
 void putAll(Map<? extends K,? extends V> m)
           
 V remove(Object key)
           
 
Methods inherited from class java.util.HashMap
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
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

UnmodifiableMap

public UnmodifiableMap()
Method Detail

put

public final V put(K key,
                   V value)
Specified by:
put in interface Map<K,V>
Overrides:
put in class HashMap<K,V>

putAll

public final void putAll(Map<? extends K,? extends V> m)
Specified by:
putAll in interface Map<K,V>
Overrides:
putAll in class HashMap<K,V>

remove

public final V remove(Object key)
Specified by:
remove in interface Map<K,V>
Overrides:
remove in class HashMap<K,V>

clear

public final void clear()
Specified by:
clear in interface Map<K,V>
Overrides:
clear in class HashMap<K,V>


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.