Class EmptyLinkedMap<K,​V>

  • All Implemented Interfaces:
    Serializable, Cloneable, 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.OrderedMap<K,​V>, org.apache.commons.collections4.Put<K,​V>

    public class EmptyLinkedMap<K,​V>
    extends org.apache.commons.collections4.map.LinkedMap<K,​V>
    EmptyLinkedMap implements an empty unmodifiable LinkedMap.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.commons.collections4.map.AbstractLinkedMap

        org.apache.commons.collections4.map.AbstractLinkedMap.EntrySetIterator<K extends Object,​V extends Object>, org.apache.commons.collections4.map.AbstractLinkedMap.KeySetIterator<K extends Object>, org.apache.commons.collections4.map.AbstractLinkedMap.LinkEntry<K extends Object,​V extends Object>, org.apache.commons.collections4.map.AbstractLinkedMap.LinkIterator<K extends Object,​V extends Object>, org.apache.commons.collections4.map.AbstractLinkedMap.LinkMapIterator<K extends Object,​V extends Object>, org.apache.commons.collections4.map.AbstractLinkedMap.ValuesIterator<V extends Object>
      • Nested classes/interfaces inherited from class org.apache.commons.collections4.map.AbstractHashedMap

        org.apache.commons.collections4.map.AbstractHashedMap.EntrySet<K extends Object,​V extends Object>, org.apache.commons.collections4.map.AbstractHashedMap.HashEntry<K extends Object,​V extends Object>, org.apache.commons.collections4.map.AbstractHashedMap.HashIterator<K extends Object,​V extends Object>, org.apache.commons.collections4.map.AbstractHashedMap.HashMapIterator<K extends Object,​V extends Object>, org.apache.commons.collections4.map.AbstractHashedMap.KeySet<K extends Object>, org.apache.commons.collections4.map.AbstractHashedMap.Values<V extends Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.commons.collections4.map.LinkedMap INSTANCE
      The only instance of this class.
      • Fields inherited from class org.apache.commons.collections4.map.AbstractHashedMap

        DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, DEFAULT_THRESHOLD, GETKEY_INVALID, GETVALUE_INVALID, MAXIMUM_CAPACITY, NO_NEXT_ENTRY, NO_PREVIOUS_ENTRY, NULL, REMOVE_INVALID, SETVALUE_INVALID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      org.apache.commons.collections4.map.LinkedMap<K,​V> clone()
      Returns the single instance of this class.
      Set<Map.Entry<K,​V>> entrySet()
      Returns an unmodifiable empty set.
      Set<K> keySet()
      Returns an unmodifiable empty set.
      V put​(Object o, Object o1)  
      void putAll​(Map map)  
      V remove​(int i)  
      V remove​(Object o)  
      Collection<V> values()
      Returns an unmodifiable empty collection.
      • Methods inherited from class org.apache.commons.collections4.map.LinkedMap

        asList, get, getValue, indexOf
      • Methods inherited from class org.apache.commons.collections4.map.AbstractLinkedMap

        addEntry, containsValue, createEntry, createEntrySetIterator, createKeySetIterator, createValuesIterator, entryAfter, entryBefore, firstKey, getEntry, getEntry, init, lastKey, mapIterator, nextKey, previousKey, removeEntry
      • Methods inherited from class org.apache.commons.collections4.map.AbstractHashedMap

        addMapping, calculateNewCapacity, calculateThreshold, checkCapacity, containsKey, convertKey, destroyEntry, doReadObject, doWriteObject, ensureCapacity, entryHashCode, entryKey, entryNext, entryValue, equals, get, hash, hashCode, hashIndex, isEmpty, isEqualKey, isEqualValue, removeMapping, reuseEntry, size, toString, updateEntry
      • Methods inherited from interface org.apache.commons.collections4.Get

        containsKey, get, isEmpty, size
    • Field Detail

      • INSTANCE

        public static final org.apache.commons.collections4.map.LinkedMap INSTANCE
        The only instance of this class.
    • Method Detail

      • remove

        public V remove​(int i)
        Overrides:
        remove in class org.apache.commons.collections4.map.LinkedMap<K,​V>
        Throws:
        UnsupportedOperationException - always.
      • clear

        public void clear()
        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.AbstractLinkedMap<K,​V>
        Throws:
        UnsupportedOperationException - always.
      • put

        public V put​(Object o,
                     Object o1)
        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.AbstractHashedMap<K,​V>
        Throws:
        UnsupportedOperationException - always.
      • putAll

        public void putAll​(Map map)
        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.AbstractHashedMap<K,​V>
        Throws:
        UnsupportedOperationException - always.
      • remove

        public V remove​(Object o)
        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.AbstractHashedMap<K,​V>
        Throws:
        UnsupportedOperationException - always.
      • entrySet

        public Set<Map.Entry<K,​V>> entrySet()
        Returns an unmodifiable empty set.
        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.AbstractHashedMap<K,​V>
        Returns:
        an unmodifiable empty set.
      • keySet

        public Set<K> keySet()
        Returns an unmodifiable empty set.
        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.AbstractHashedMap<K,​V>
        Returns:
        an unmodifiable empty set.
      • values

        public Collection<V> values()
        Returns an unmodifiable empty collection.
        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.AbstractHashedMap<K,​V>
        Returns:
        an unmodifiable empty collection.
      • clone

        public org.apache.commons.collections4.map.LinkedMap<K,​V> clone()
        Returns the single instance of this class.
        Overrides:
        clone in class org.apache.commons.collections4.map.LinkedMap<K,​V>
        Returns:
        INSTANCE.