Package me.hsgamer.topper.agent.holder
Class AgentDataHolder<K,V>
- java.lang.Object
-
- me.hsgamer.topper.core.DataHolder<K,V>
-
- me.hsgamer.topper.agent.holder.AgentDataHolder<K,V>
-
- Direct Known Subclasses:
NumberTopHolder
public class AgentDataHolder<K,V> extends DataHolder<K,V>
-
-
Constructor Summary
Constructors Constructor Description AgentDataHolder(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAgent(Agent<K,V> agent)
protected void
onCreate(DataEntry<K,V> entry)
protected void
onRemove(DataEntry<K,V> entry)
protected void
onUpdate(DataEntry<K,V> entry)
void
register()
void
removeAgent(Agent<K,V> agent)
void
unregister()
-
Methods inherited from class me.hsgamer.topper.core.DataHolder
clear, getDefaultValue, getEntry, getEntryMap, getName, getOrCreateEntry, removeEntry
-
-
-
-
Constructor Detail
-
AgentDataHolder
public AgentDataHolder(String name)
-
-
Method Detail
-
onCreate
protected final void onCreate(DataEntry<K,V> entry)
- Overrides:
onCreate
in classDataHolder<K,V>
-
onUpdate
protected final void onUpdate(DataEntry<K,V> entry)
- Overrides:
onUpdate
in classDataHolder<K,V>
-
onRemove
protected final void onRemove(DataEntry<K,V> entry)
- Overrides:
onRemove
in classDataHolder<K,V>
-
register
public final void register()
-
unregister
public final void unregister()
-
-