Interface ValueStore

All Known Implementing Classes:
DefaultValueStore

public interface ValueStore
Custom value store.
Author:
Tadaya Tsuyukubo
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static ValueStore
    Creates a default ValueStore.
    get(Object key)
    Returns the value associated with the key.
    <T> T
    get(Object key, Class<T> type)
    Returns the value associated with the key and casts it to the specified type.
    <T> T
    getOrDefault(Object key, T defaultValue)
    Returns the value associated with the key, or the specified default value if none exists.
    void
    put(Object key, Object value)
    Stores the provided value under the provided key.
    void
    Stores all key/value pairs from the provided map.
    Removes the value associated with the provided key.
  • Method Details