Class DataHolder<K,V>

java.lang.Object
me.hsgamer.topper.core.DataHolder<K,V>
Direct Known Subclasses:
AgentDataHolder

public class DataHolder<K,V> extends Object
  • Constructor Details

    • DataHolder

      protected DataHolder(String name)
  • Method Details

    • getDefaultValue

      public V getDefaultValue()
    • onCreate

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

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

      protected void onUpdate(DataEntry<K,V> entry, V oldValue, V newValue)
    • getName

      public final String getName()
    • getEntryMap

      public final Map<K,DataEntry<K,V>> getEntryMap()
    • getEntry

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

      public final DataEntry<K,V> getOrCreateEntry(K key)
    • removeEntry

      public final void removeEntry(K key)
    • clear

      public final void clear()