Interface Settings.NovaSetting<T>

Type Parameters:
T - Setting Type
All Known Implementing Classes:
Settings.Business, Settings.Corporation, Settings.Personal
Enclosing class:
Settings

public static interface Settings.NovaSetting<T>
Interface all Setting Enum Categories Implement
  • Method Summary

    Modifier and Type
    Method
    Description
    Fetches the default value of this setting.
    Fetches the description annotation on this NovaSetting.
    @NotNull String
    Fetches the display name of this setting in the current language.
    @NotNull Set<T>
    Fetches all of the possible values for this setting.
    @NotNull Class<T>
    Fetches the type of setting this is.
    @NotNull String
    Fetches the identifier of this setting.
    parseValue(@NotNull String value)
    Parses a value from a string.
  • Method Details

    • getDefaultValue

      @NotNull T getDefaultValue()
      Fetches the default value of this setting.
      Returns:
      default value of setting
    • getPossibleValues

      @NotNull @NotNull Set<T> getPossibleValues()
      Fetches all of the possible values for this setting.
      Returns:
      possible values of setting
    • getDisplayName

      @NotNull @NotNull String getDisplayName()
      Fetches the display name of this setting in the current language.
      Returns:
      display name of setting
    • name

      @NotNull @NotNull String name()
      Fetches the identifier of this setting.
      Returns:
      identifier of setting
    • getDescription

      @Nullable @Nullable SettingDescription getDescription()
      Fetches the description annotation on this NovaSetting. If no description is present, null is returned.
      Returns:
      SettingDescription annotation
    • getType

      @NotNull @NotNull Class<T> getType()
      Fetches the type of setting this is.
      Returns:
      type of setting
    • parseValue

      @NotNull T parseValue(@NotNull @NotNull String value)
      Parses a value from a string.
      Parameters:
      value - String to parse
      Returns:
      Parsed value applicable to this setting