Class NullableMultivaluedHashMap<K,​V>

  • Type Parameters:
    K - the type of keys maintained by this map
    V - the type of mapped values which can contain null values
    All Implemented Interfaces:
    java.io.Serializable, java.util.Map<K,​java.util.List<V>>, javax.ws.rs.core.MultivaluedMap<K,​V>

    public class NullableMultivaluedHashMap<K,​V>
    extends javax.ws.rs.core.MultivaluedHashMap<K,​V>
    An implementation of MultivaluedMap where values can be null.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      • Fields inherited from class javax.ws.rs.core.AbstractMultivaluedMap

        store
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addFirstNull​(java.util.List<V> values)  
      protected void addNull​(java.util.List<V> values)  
      • Methods inherited from class javax.ws.rs.core.AbstractMultivaluedMap

        add, addAll, addAll, addFirst, clear, containsKey, containsValue, entrySet, equals, equalsIgnoreValueOrder, get, getFirst, getValues, hashCode, isEmpty, keySet, put, putAll, putSingle, remove, size, toString, values
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • NullableMultivaluedHashMap

        public NullableMultivaluedHashMap()
      • NullableMultivaluedHashMap

        public NullableMultivaluedHashMap​(int initialCapacity)
      • NullableMultivaluedHashMap

        public NullableMultivaluedHashMap​(int initialCapacity,
                                          float loadFactor)
      • NullableMultivaluedHashMap

        public NullableMultivaluedHashMap​(javax.ws.rs.core.MultivaluedMap<? extends K,​? extends V> map)
    • Method Detail

      • addFirstNull

        protected void addFirstNull​(java.util.List<V> values)
        Overrides:
        addFirstNull in class javax.ws.rs.core.AbstractMultivaluedMap<K,​V>
      • addNull

        protected void addNull​(java.util.List<V> values)
        Overrides:
        addNull in class javax.ws.rs.core.AbstractMultivaluedMap<K,​V>