Class DelegatingMultivaluedMap<K,​V>

  • Type Parameters:
    K - The type of keys in the map.
    V - The type of values in the lists in the map.
    All Implemented Interfaces:
    Map<K,​List<V>>, javax.ws.rs.core.MultivaluedMap<K,​V>
    Direct Known Subclasses:
    PrefixedMultivaluedMap

    public class DelegatingMultivaluedMap<K,​V>
    extends Object
    implements javax.ws.rs.core.MultivaluedMap<K,​V>
    MultivaluedMap implementation that delegates to another instance. Convenience class for MultivaluedMap enhancements that don't want to implement all methods.
    • Constructor Detail

      • DelegatingMultivaluedMap

        public DelegatingMultivaluedMap​(javax.ws.rs.core.MultivaluedMap<K,​V> delegate)
    • Method Detail

      • addAll

        public void addAll​(K key,
                           V... newValues)
        Specified by:
        addAll in interface javax.ws.rs.core.MultivaluedMap<K,​V>
      • addAll

        public void addAll​(K key,
                           List<V> valueList)
        Specified by:
        addAll in interface javax.ws.rs.core.MultivaluedMap<K,​V>
      • addFirst

        public void addFirst​(K key,
                             V value)
        Specified by:
        addFirst in interface javax.ws.rs.core.MultivaluedMap<K,​V>
      • putSingle

        public void putSingle​(K key,
                              V value)
        Specified by:
        putSingle in interface javax.ws.rs.core.MultivaluedMap<K,​V>
      • add

        public void add​(K key,
                        V value)
        Specified by:
        add in interface javax.ws.rs.core.MultivaluedMap<K,​V>
      • getFirst

        public V getFirst​(K key)
        Specified by:
        getFirst in interface javax.ws.rs.core.MultivaluedMap<K,​V>
      • size

        public int size()
        Specified by:
        size in interface Map<K,​V>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map<K,​V>
      • putAll

        public void putAll​(Map<? extends K,​? extends List<V>> map)
        Specified by:
        putAll in interface Map<K,​V>
      • clear

        public void clear()
        Specified by:
        clear in interface Map<K,​V>
      • keySet

        public Set<K> keySet()
        Specified by:
        keySet in interface Map<K,​V>
      • equalsIgnoreValueOrder

        public boolean equalsIgnoreValueOrder​(javax.ws.rs.core.MultivaluedMap<K,​V> otherMap)
        Specified by:
        equalsIgnoreValueOrder in interface javax.ws.rs.core.MultivaluedMap<K,​V>