org.apache.myfaces.extensions.validator.util
Class NullValueAwareConcurrentHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.concurrent.ConcurrentHashMap<K,V>
          extended by org.apache.myfaces.extensions.validator.util.NullValueAwareConcurrentHashMap<K,V>
All Implemented Interfaces:
Serializable, ConcurrentMap<K,V>, Map<K,V>

public class NullValueAwareConcurrentHashMap<K,V>
extends ConcurrentHashMap<K,V>

in some cases we have to store null values to avoid re-evaluation

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>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
NullValueAwareConcurrentHashMap(Class<? extends V> nullMarkerValueClass)
           
NullValueAwareConcurrentHashMap(V nullMarkerValue)
           
 
Method Summary
 V get(Object key)
           
 V put(K key, V value)
           
 
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, contains, containsKey, containsValue, elements, entrySet, isEmpty, keys, keySet, putAll, putIfAbsent, remove, remove, replace, replace, size, values
 
Methods inherited from class java.util.AbstractMap
clone, 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

NullValueAwareConcurrentHashMap

public NullValueAwareConcurrentHashMap(V nullMarkerValue)

NullValueAwareConcurrentHashMap

public NullValueAwareConcurrentHashMap(Class<? extends V> nullMarkerValueClass)
Method Detail

put

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

get

public V get(Object key)
Specified by:
get in interface Map<K,V>
Overrides:
get in class ConcurrentHashMap<K,V>


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