Interface DataHolder<K,V>

All Known Subinterfaces:
AgentHolder<K,V>
All Known Implementing Classes:
SimpleDataHolder

public interface DataHolder<K,V>
  • Method Details

    • getDefaultValue

      @Nullable V getDefaultValue()
    • getOrCreateEntry

      DataEntry<K,V> getOrCreateEntry(K key)
    • getEntry

      Optional<DataEntry<K,V>> getEntry(K key)
    • removeEntry

      void removeEntry(K key)
    • getEntryMap

      Map<K,DataEntry<K,V>> getEntryMap()
    • clear

      void clear()
    • onCreate

      default void onCreate(DataEntry<K,V> entry)
    • onRemove

      default void onRemove(DataEntry<K,V> entry)
    • onUpdate

      default void onUpdate(DataEntry<K,V> entry, V oldValue, V newValue)