Class UnmodifiableMultivaluedMap<K,​V>

  • Type Parameters:
    K -
    V -
    All Implemented Interfaces:
    java.util.Map<K,​java.util.List<V>>, javax.ws.rs.core.MultivaluedMap<K,​V>

    @Deprecated
    public class UnmodifiableMultivaluedMap<K,​V>
    extends java.lang.Object
    implements javax.ws.rs.core.MultivaluedMap<K,​V>
    Deprecated.
    Will be removed in next minor release.
    An unmodifiable MultivaluedMap.
    • 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>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(K key, V value)
      Deprecated.
       
      private java.lang.Object caseInsensitive​(java.lang.Object key)
      Deprecated.
       
      void clear()
      Deprecated.
       
      boolean containsKey​(java.lang.Object key)
      Deprecated.
       
      boolean containsValue​(java.lang.Object value)
      Deprecated.
       
      private static MultivaluedMapImpl<java.lang.String,​java.lang.String> copySeries​(Series<?> series, boolean caseInsensitive)
      Deprecated.
      Creates a MultiValuedMap of unmodifiable Lists.
      java.util.Set<java.util.Map.Entry<K,​java.util.List<V>>> entrySet()
      Deprecated.
       
      boolean equals​(java.lang.Object anotherObect)
      Deprecated.
       
      java.util.List<V> get​(java.lang.Object key)
      Deprecated.
       
      static UnmodifiableMultivaluedMap<java.lang.String,​java.lang.String> get​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> mmap)
      Deprecated.
      Returns an UnmodifiableMultivaluedMap, that contains the content of the given MultivaluedMap.
      static UnmodifiableMultivaluedMap<java.lang.String,​java.lang.String> get​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> mmap, boolean caseSensitive)
      Deprecated.
      Returns an UnmodifiableMultivaluedMap, that contains the content of the given MultivaluedMap.
      V getFirst​(K key)
      Deprecated.
       
      static UnmodifiableMultivaluedMap<java.lang.String,​java.lang.String> getFromSeries​(Series<?> series, boolean caseSensitive)
      Deprecated.
      Creates an UnmodifiableMultivaluedMap<String, String;> from the given Series.
      V getLast​(K key)
      Deprecated.
      Returns the last element for the given key.
      int hashCode()
      Deprecated.
       
      boolean isEmpty()
      Deprecated.
       
      java.util.Set<K> keySet()
      Deprecated.
       
      java.util.List<V> put​(K key, java.util.List<V> value)
      Deprecated.
       
      void putAll​(java.util.Map<? extends K,​? extends java.util.List<V>> t)
      Deprecated.
       
      void putSingle​(K key, V value)
      Deprecated.
       
      java.util.List<V> remove​(java.lang.Object key)
      Deprecated.
       
      int size()
      Deprecated.
       
      private java.lang.UnsupportedOperationException throwUnmodifiable()
      Deprecated.
       
      java.util.Collection<java.util.List<V>> values()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

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

      • caseInsensitive

        private final boolean caseInsensitive
        Deprecated.
    • Constructor Detail

      • UnmodifiableMultivaluedMap

        private UnmodifiableMultivaluedMap​(MultivaluedMapImpl<K,​V> mmap,
                                           boolean caseSensitive)
        Deprecated.
        Creates a new unmodifiable MultivaluedMap.
        Parameters:
        mmap -
        caseSensitive -
    • Method Detail

      • copySeries

        private static MultivaluedMapImpl<java.lang.String,​java.lang.String> copySeries​(Series<?> series,
                                                                                              boolean caseInsensitive)
        Deprecated.
        Creates a MultiValuedMap of unmodifiable Lists.
      • get

        public static UnmodifiableMultivaluedMap<java.lang.String,​java.lang.String> get​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> mmap)
        Deprecated.
        Returns an UnmodifiableMultivaluedMap, that contains the content of the given MultivaluedMap.
        Parameters:
        mmap -
        Returns:
        the created unmodifiable map
      • get

        public static UnmodifiableMultivaluedMap<java.lang.String,​java.lang.String> get​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> mmap,
                                                                                              boolean caseSensitive)
        Deprecated.
        Returns an UnmodifiableMultivaluedMap, that contains the content of the given MultivaluedMap.
        Parameters:
        mmap -
        caseSensitive -
        Returns:
        the created unmodifiable map
      • getFromSeries

        public static UnmodifiableMultivaluedMap<java.lang.String,​java.lang.String> getFromSeries​(Series<?> series,
                                                                                                        boolean caseSensitive)
        Deprecated.
        Creates an UnmodifiableMultivaluedMap<String, String;> from the given Series.
        Parameters:
        series -
        caseSensitive -
        Returns:
        the created unmodifiable map
      • add

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

        private java.lang.Object caseInsensitive​(java.lang.Object key)
        Deprecated.
      • clear

        public void clear()
                   throws java.lang.UnsupportedOperationException
        Deprecated.
        Specified by:
        clear in interface java.util.Map<K,​V>
        Throws:
        java.lang.UnsupportedOperationException
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Deprecated.
        Specified by:
        containsKey in interface java.util.Map<K,​V>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Deprecated.
        Specified by:
        containsValue in interface java.util.Map<K,​V>
      • entrySet

        public java.util.Set<java.util.Map.Entry<K,​java.util.List<V>>> entrySet()
        Deprecated.
        Specified by:
        entrySet in interface java.util.Map<K,​V>
      • equals

        public boolean equals​(java.lang.Object anotherObect)
        Deprecated.
        Specified by:
        equals in interface java.util.Map<K,​V>
        Overrides:
        equals in class java.lang.Object
      • get

        public java.util.List<V> get​(java.lang.Object key)
        Deprecated.
        Specified by:
        get in interface java.util.Map<K,​V>
      • getFirst

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

        public V getLast​(K key)
        Deprecated.
        Returns the last element for the given key.
        Parameters:
        key -
        Returns:
        Returns the last element for the given key.
      • hashCode

        public int hashCode()
        Deprecated.
        Specified by:
        hashCode in interface java.util.Map<K,​V>
        Overrides:
        hashCode in class java.lang.Object
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Specified by:
        isEmpty in interface java.util.Map<K,​V>
      • keySet

        public java.util.Set<K> keySet()
        Deprecated.
        Specified by:
        keySet in interface java.util.Map<K,​V>
      • put

        public java.util.List<V> put​(K key,
                                     java.util.List<V> value)
                              throws java.lang.UnsupportedOperationException
        Deprecated.
        Specified by:
        put in interface java.util.Map<K,​V>
        Throws:
        java.lang.UnsupportedOperationException
      • putAll

        public void putAll​(java.util.Map<? extends K,​? extends java.util.List<V>> t)
                    throws java.lang.UnsupportedOperationException
        Deprecated.
        Specified by:
        putAll in interface java.util.Map<K,​V>
        Throws:
        java.lang.UnsupportedOperationException
      • putSingle

        public void putSingle​(K key,
                              V value)
                       throws java.lang.UnsupportedOperationException
        Deprecated.
        Specified by:
        putSingle in interface javax.ws.rs.core.MultivaluedMap<K,​V>
        Throws:
        java.lang.UnsupportedOperationException
      • remove

        public java.util.List<V> remove​(java.lang.Object key)
                                 throws java.lang.UnsupportedOperationException
        Deprecated.
        Specified by:
        remove in interface java.util.Map<K,​V>
        Throws:
        java.lang.UnsupportedOperationException
      • size

        public int size()
        Deprecated.
        Specified by:
        size in interface java.util.Map<K,​V>
      • throwUnmodifiable

        private java.lang.UnsupportedOperationException throwUnmodifiable()
                                                                   throws java.lang.UnsupportedOperationException
        Deprecated.
        Throws:
        java.lang.UnsupportedOperationException
      • values

        public java.util.Collection<java.util.List<V>> values()
        Deprecated.
        Specified by:
        values in interface java.util.Map<K,​V>