Package me.hsgamer.topper.core
Class DataHolder<K,V>
- java.lang.Object
-
- me.hsgamer.topper.core.DataHolder<K,V>
-
public class DataHolder<K,V> extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDataHolder(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()protected VgetDefaultValue()Optional<DataEntry<K,V>>getEntry(K key)Map<K,DataEntry<K,V>>getEntryMap()StringgetName()DataEntry<K,V>getOrCreateEntry(K key)protected voidonCreate(DataEntry<K,V> entry)protected voidonRemove(DataEntry<K,V> entry)protected voidonUpdate(DataEntry<K,V> entry, V oldValue)voidremoveEntry(K key)
-