Enum Class Settings.Personal
- All Implemented Interfaces:
Serializable,Comparable<Settings.Personal>,Constable,Settings.NovaSetting<Boolean>
- Enclosing class:
- Settings
public static enum Settings.Personal
extends Enum<Settings.Personal>
implements Settings.NovaSetting<Boolean>
Represents Personal Settings
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether the player is rating businesses anonymously.Whether the Player will receive plugin notificationsWhether the player's balance is publicly visible -
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 BooleanparseValue(@NotNull String value) Parses a value from a string.static Settings.PersonalReturns the enum constant of this class with the specified name.static Settings.Personal[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface us.teaminceptus.novaconomy.api.settings.Settings.NovaSetting
name
-
Enum Constant Details
-
NOTIFICATIONS
Whether the Player will receive plugin notifications -
PUBLIC_BALANCE
Whether the player's balance is publicly visible -
ANONYMOUS_RATING
Whether the player is rating businesses anonymously.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDefaultValue
Description copied from interface:Settings.NovaSettingFetches the default value of this setting.- Specified by:
getDefaultValuein interfaceSettings.NovaSetting<Boolean>- Returns:
- default value of setting
-
getDisplayName
Description copied from interface:Settings.NovaSettingFetches the display name of this setting in the current language.- Specified by:
getDisplayNamein interfaceSettings.NovaSetting<Boolean>- Returns:
- display name of setting
-
getDescription
Description copied from interface:Settings.NovaSettingFetches the description annotation on this NovaSetting. If no description is present, null is returned.- Specified by:
getDescriptionin interfaceSettings.NovaSetting<Boolean>- Returns:
SettingDescriptionannotation
-
getPossibleValues
Description copied from interface:Settings.NovaSettingFetches all of the possible values for this setting.- Specified by:
getPossibleValuesin interfaceSettings.NovaSetting<Boolean>- Returns:
- possible values of setting
-
getType
Description copied from interface:Settings.NovaSettingFetches the type of setting this is.- Specified by:
getTypein interfaceSettings.NovaSetting<Boolean>- Returns:
- type of setting
-
parseValue
Description copied from interface:Settings.NovaSettingParses a value from a string.- Specified by:
parseValuein interfaceSettings.NovaSetting<Boolean>- Parameters:
value- String to parse- Returns:
- Parsed value applicable to this setting
-