Class SimpleDataHolder<K,V>

java.lang.Object
me.hsgamer.topper.data.simple.SimpleDataHolder<K,V>
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 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>