Class SimpleValueStorage<V>

java.lang.Object
ru.progrm_jarvis.javacommons.object.valuestorage.AbstractValueStorage<@NotNull String,V>
ru.progrm_jarvis.javacommons.object.valuestorage.SimpleValueStorage<V>
Type Parameters:
V - type of stored values
All Implemented Interfaces:
ValueStorage<String,V>

public final class SimpleValueStorage<V> extends AbstractValueStorage<@NotNull String,V>
Simple value storage based on AbstractValueStorage using strings as its keys.
  • Method Details

    • create

      @NotNull public static <V> @NotNull ValueStorage<@NotNull String,V> create()
      Creates a new simple value storage.
      Type Parameters:
      V - type of stored values
      Returns:
      created simple value storage
    • generateNewKey

      protected String generateNewKey()
      Description copied from class: AbstractValueStorage
      Generates a new key for storing the unique value.
      Specified by:
      generateNewKey in class AbstractValueStorage<@NotNull String,V>
      Returns:
      newly generated unique key