com.ibm.tivoli.maximo.dbmanage

Class NoNullValueHashMap

  • java.lang.Object
    • java.util.AbstractMap
      • java.util.HashMap
        • com.ibm.tivoli.maximo.dbmanage.NoNullValueHashMap
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map


    public class NoNullValueHashMap
    extends java.util.HashMap
    implements java.util.Map
    This HashMap will not store keys with null values. Unlike Hashtable, it will not throw an exception if put is called with a null value. Instead it will remove the key from the map.
    See Also:
    Allows null values, Synchronized and throws exception if put with null for value., Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry, java.util.AbstractMap.SimpleImmutableEntry
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object put(java.lang.Object key, java.lang.Object value) 
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, 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

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Constructor Detail

      • NoNullValueHashMap

        public NoNullValueHashMap()
        Constructor
      • NoNullValueHashMap

        public NoNullValueHashMap(int initialCapacity)
        Constructor
        Parameters:
        initialCapacity -
      • NoNullValueHashMap

        public NoNullValueHashMap(int initialCapacity,
                                  float loadFactor)
        Constructor
        Parameters:
        initialCapacity -
        loadFactor -
      • NoNullValueHashMap

        public NoNullValueHashMap(java.util.Map m)
        Constructor
        Parameters:
        m -
    • Method Detail

      • put

        public java.lang.Object put(java.lang.Object key,
                                    java.lang.Object value)
        Specified by:
        put in interface java.util.Map
        Overrides:
        put in class java.util.HashMap