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 TypeMethodDescriptionFetches the default value of this setting.@Nullable SettingDescriptionFetches the description annotation on this NovaSetting.@NotNull StringFetches the display name of this setting in the current language.Fetches all of the possible values for this setting.getType()Fetches the type of setting this is.@NotNull Stringname()Fetches the identifier of this setting.parseValue(@NotNull String value) Parses a value from a string.
-
Method Details
-
getDefaultValue
Fetches the default value of this setting.- Returns:
- default value of setting
-
getPossibleValues
Fetches all of the possible values for this setting.- Returns:
- possible values of setting
-
getDisplayName
Fetches the display name of this setting in the current language.- Returns:
- display name of setting
-
name
Fetches the identifier of this setting.- Returns:
- identifier of setting
-
getDescription
Fetches the description annotation on this NovaSetting. If no description is present, null is returned.- Returns:
SettingDescriptionannotation
-
getType
Fetches the type of setting this is.- Returns:
- type of setting
-
parseValue
Parses a value from a string.- Parameters:
value- String to parse- Returns:
- Parsed value applicable to this setting
-