com.atlassian.jira.util.map
Class NotNullHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by com.atlassian.jira.util.map.NotNullHashMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public class NotNullHashMap<K,V>
extends HashMap<K,V>

HashMap that quietly rejects any value that is null

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
NotNullHashMap()
           
 
Method Summary
 V put(K key, V value)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, 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

NotNullHashMap

public NotNullHashMap()
Method Detail

put

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.