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
    Create default ValueStore.
    get(Object key)
    Get the value associated to the key.
    <T> T
    get(Object key, Class<T> type)
    Get the value associated to the key and cast to the type.
    <T> T
    getOrDefault(Object key, T defaultValue)
    Get the value associated to the key; otherwise returns specified value.
    void
    put(Object key, Object value)
    Store a value associating the provided key.
    void
    Store all key value pairs from provided map.
    Remove the value associated to the provided key.