Class UnmodifiableMapDecorator<K,V>

java.lang.Object
org.apache.commons.collections4.map.AbstractIterableMap<K,V>
org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
com.epam.eco.commons.collections.UnmodifiableMapDecorator<K,V>
All Implemented Interfaces:
Map<K,V>, org.apache.commons.collections4.Get<K,V>, org.apache.commons.collections4.IterableGet<K,V>, org.apache.commons.collections4.IterableMap<K,V>, org.apache.commons.collections4.Put<K,V>

public class UnmodifiableMapDecorator<K,V> extends org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
Author:
Andrei_Tytsik
  • Constructor Details

    • UnmodifiableMapDecorator

      public UnmodifiableMapDecorator(Map<? extends K,? extends V> map)
  • Method Details

    • clear

      @Deprecated public final void clear()
      Deprecated.
      Specified by:
      clear in interface Map<K,V>
      Specified by:
      clear in interface org.apache.commons.collections4.Put<K,V>
      Overrides:
      clear in class org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
    • put

      @Deprecated public final V put(K key, V value)
      Deprecated.
      Specified by:
      put in interface Map<K,V>
      Specified by:
      put in interface org.apache.commons.collections4.Put<K,V>
      Overrides:
      put in class org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
    • putAll

      @Deprecated public final void putAll(Map<? extends K,? extends V> mapToCopy)
      Deprecated.
      Specified by:
      putAll in interface Map<K,V>
      Specified by:
      putAll in interface org.apache.commons.collections4.Put<K,V>
      Overrides:
      putAll in class org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
    • remove

      @Deprecated public final V remove(Object key)
      Deprecated.
      Specified by:
      remove in interface org.apache.commons.collections4.Get<K,V>
      Specified by:
      remove in interface Map<K,V>
      Overrides:
      remove in class org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
    • entrySet

      public final Set<Map.Entry<K,V>> entrySet()
      Specified by:
      entrySet in interface org.apache.commons.collections4.Get<K,V>
      Specified by:
      entrySet in interface Map<K,V>
      Overrides:
      entrySet in class org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
    • keySet

      public final Set<K> keySet()
      Specified by:
      keySet in interface org.apache.commons.collections4.Get<K,V>
      Specified by:
      keySet in interface Map<K,V>
      Overrides:
      keySet in class org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
    • values

      public final Collection<V> values()
      Specified by:
      values in interface org.apache.commons.collections4.Get<K,V>
      Specified by:
      values in interface Map<K,V>
      Overrides:
      values in class org.apache.commons.collections4.map.AbstractMapDecorator<K,V>
    • with

      public static <K, V> UnmodifiableMapDecorator<K,V> with(Map<? extends K,? extends V> map)