- All Implemented Interfaces:
me.hsgamer.topper.data.core.DataHolder<K,V>
public class SimpleDataHolder<K,V>
extends Object
implements me.hsgamer.topper.data.core.DataHolder<K,V>
-
Constructor Summary
Constructors
-
Method Summary
void
Optional<me.hsgamer.topper.data.core.DataEntry<K,V>>
Map<K,me.hsgamer.topper.data.core.DataEntry<K,V>>
me.hsgamer.topper.data.core.DataEntry<K,V>
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.hsgamer.topper.data.core.DataHolder
onCreate, onRemove, onUpdate
-
Constructor Details
-
SimpleDataHolder
public SimpleDataHolder()
-
Method Details
-
getDefaultValue
@Nullable
public V getDefaultValue()
- Specified by:
getDefaultValue in interface me.hsgamer.topper.data.core.DataHolder<K,V>
-
getOrCreateEntry
public me.hsgamer.topper.data.core.DataEntry<K,V> getOrCreateEntry(K key)
- Specified by:
getOrCreateEntry in interface me.hsgamer.topper.data.core.DataHolder<K,V>
-
getEntry
public Optional<me.hsgamer.topper.data.core.DataEntry<K,V>> getEntry(K key)
- Specified by:
getEntry in interface me.hsgamer.topper.data.core.DataHolder<K,V>
-
removeEntry
public void removeEntry(K key)
- Specified by:
removeEntry in interface me.hsgamer.topper.data.core.DataHolder<K,V>
-
getEntryMap
public Map<K,me.hsgamer.topper.data.core.DataEntry<K,V>> getEntryMap()
- Specified by:
getEntryMap in interface me.hsgamer.topper.data.core.DataHolder<K,V>
-
clear
public void clear()
- Specified by:
clear in interface me.hsgamer.topper.data.core.DataHolder<K,V>