Interface KeyValueState<K,​V>

    • Method Detail

      • put

        void put​(K key,
                 V value)
        Maps the value with the key.
        Parameters:
        key - the key
        value - the value
      • get

        V get​(K key)
        Returns the value mapped to the key.
        Parameters:
        key - the key
        Returns:
        the value or null if no mapping is found
      • get

        V get​(K key,
              V defaultValue)
        Returns the value mapped to the key or defaultValue if no mapping is found.
        Parameters:
        key - the key
        defaultValue - the value to return if no mapping is found
        Returns:
        the value or defaultValue if no mapping is found
      • delete

        V delete​(K key)
        Deletes the value mapped to the key, if there is any.
        Parameters:
        key - the key