Interface Storage<K,​V>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Removes all keys
      V get​(K key)
      Returns the value associated with the given key, or null if not present.
      void remove​(K key)
      Removes the given key.
      void removeAll​(Collection<K> keys)
      Removes all the given keys.
      void set​(K key, V value)
      Adds a value to the store
    • Method Detail

      • clear

        void clear()
        Removes all keys
      • get

        V get​(K key)
        Returns the value associated with the given key, or null if not present.
      • remove

        void remove​(K key)
        Removes the given key.
      • removeAll

        void removeAll​(Collection<K> keys)
        Removes all the given keys.
      • set

        void set​(K key,
                 V value)
        Adds a value to the store