Class SettingsService

java.lang.Object
de.murmelmeister.murmelapi.settings.SettingsService

public final class SettingsService extends Object
  • Constructor Details

    • SettingsService

      public SettingsService(@NotNull @NotNull SettingsProvider provider)
  • Method Details

    • get

      public <T> T get(@NotNull @NotNull String tagId, @NotNull @NotNull Class<T> type, @Nullable T defaultValue)
    • get

      public <T> T get(@NotNull @NotNull String tagId, @NotNull @NotNull Class<T> type)
    • get

      public <T> T get(@NotNull @NotNull Settings settings, @NotNull @NotNull Class<T> type)
    • set

      @NotNull public <T> @NotNull Optional<Settings> set(@NotNull @NotNull String tagId, @NotNull T value)
    • delete

      public int delete(@NotNull @NotNull String tagId)