Package me.hsgamer.topper.core
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 Summary
Constructors Modifier Constructor Description protected
DataHolder(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
protected V
getDefaultValue()
Optional<DataEntry<K,V>>
getEntry(K key)
Map<K,DataEntry<K,V>>
getEntryMap()
String
getName()
DataEntry<K,V>
getOrCreateEntry(K key)
protected void
onCreate(DataEntry<K,V> entry)
protected void
onRemove(DataEntry<K,V> entry)
protected void
onUpdate(DataEntry<K,V> entry)
void
removeEntry(K key)
-