Class UnmodifiableMultivaluedMap<K,V>

java.lang.Object
org.jboss.resteasy.specimpl.UnmodifiableMultivaluedMap<K,V>
All Implemented Interfaces:
jakarta.ws.rs.core.MultivaluedMap<K,V>, Map<K,List<V>>

public class UnmodifiableMultivaluedMap<K,V> extends Object implements jakarta.ws.rs.core.MultivaluedMap<K,V>
Unmodifiable implementation of MultivaluedMap interface
Version:
$Revision: 1 $
Author:
Martin Stefanko
  • Constructor Details

    • UnmodifiableMultivaluedMap

      public UnmodifiableMultivaluedMap(jakarta.ws.rs.core.MultivaluedMap<K,V> delegate)
    • UnmodifiableMultivaluedMap

      public UnmodifiableMultivaluedMap(jakarta.ws.rs.core.MultivaluedMap<K,V> delegate, boolean eagerlyInitializeEntrySet)
  • Method Details

    • putSingle

      public void putSingle(K k, V v)
      Specified by:
      putSingle in interface jakarta.ws.rs.core.MultivaluedMap<K,V>
    • add

      public void add(K k, V v)
      Specified by:
      add in interface jakarta.ws.rs.core.MultivaluedMap<K,V>
    • getFirst

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

      public void addAll(K k, V... vs)
      Specified by:
      addAll in interface jakarta.ws.rs.core.MultivaluedMap<K,V>
    • addAll

      public void addAll(K k, List<V> list)
      Specified by:
      addAll in interface jakarta.ws.rs.core.MultivaluedMap<K,V>
    • addFirst

      public void addFirst(K k, V v)
      Specified by:
      addFirst in interface jakarta.ws.rs.core.MultivaluedMap<K,V>
    • equalsIgnoreValueOrder

      public boolean equalsIgnoreValueOrder(jakarta.ws.rs.core.MultivaluedMap<K,V> omap)
      Specified by:
      equalsIgnoreValueOrder in interface jakarta.ws.rs.core.MultivaluedMap<K,V>
    • clear

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

      public Set<Map.Entry<K,List<V>>> entrySet()
      Specified by:
      entrySet in interface Map<K,V>
    • get

      public List<V> get(Object key)
      Specified by:
      get in interface Map<K,V>
    • keySet

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

      public List<V> put(K key, List<V> value)
      Specified by:
      put in interface Map<K,V>
    • putAll

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

      public List<V> remove(Object key)
      Specified by:
      remove in interface Map<K,V>
    • values

      public Collection<List<V>> values()
      Specified by:
      values in interface Map<K,V>
    • containsKey

      public boolean containsKey(Object o)
      Specified by:
      containsKey in interface Map<K,V>
    • containsValue

      public boolean containsValue(Object o)
      Specified by:
      containsValue in interface Map<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>
    • toString

      public String toString()
      Overrides:
      toString in class Object