Class ReadOnlyMap<K,​V>

  • Type Parameters:
    K - Type of the keys
    V - Type of the values
    All Implemented Interfaces:
    java.util.Map<K,​V>
    Direct Known Subclasses:
    FSOrderedMapFile

    public abstract class ReadOnlyMap<K,​V>
    extends java.lang.Object
    implements java.util.Map<K,​V>
    A null implementation of java.util.Map that does nothing.
    Since:
    3.0
    Author:
    Craig Macdonald
    • 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>
    • Constructor Summary

      Constructors 
      Constructor Description
      ReadOnlyMap()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Remove all entries from this map
      V put​(K key, V value)
      V remove​(java.lang.Object _key)
      • Methods inherited from class java.lang.Object

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

        compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
    • Constructor Detail

      • ReadOnlyMap

        public ReadOnlyMap()
    • Method Detail

      • clear

        public void clear()
        Remove all entries from this map
        Specified by:
        clear in interface java.util.Map<K,​V>
      • put

        public V put​(K key,
                     V value)
        Specified by:
        put in interface java.util.Map<K,​V>
      • remove

        public V remove​(java.lang.Object _key)
        Specified by:
        remove in interface java.util.Map<K,​V>