Class MapStorage<K,​V>

  • All Implemented Interfaces:
    Storage<K,​V>

    public class MapStorage<K,​V>
    extends java.lang.Object
    implements Storage<K,​V>
    • Constructor Detail

      • MapStorage

        public MapStorage​(java.util.Map<K,​V> map)
    • Method Detail

      • get

        public V get​(K key)
        Specified by:
        get in interface Storage<K,​V>
      • put

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

        public void putAll​(java.util.Map<? extends K,​? extends V> otherMap)
        Specified by:
        putAll in interface Storage<K,​V>
      • containsKey

        public boolean containsKey​(K key)
        Specified by:
        containsKey in interface Storage<K,​V>
      • remove

        public V remove​(K key)
        Specified by:
        remove in interface Storage<K,​V>
      • clear

        public void clear()
        Specified by:
        clear in interface Storage<K,​V>
      • values

        public java.util.Collection<V> values()
        Specified by:
        values in interface Storage<K,​V>
      • keySet

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

        public int size()
        Specified by:
        size in interface Storage<K,​V>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Storage<K,​V>