Enum Class UpgradeBooleanModifier
- All Implemented Interfaces:
UpgradeModifier<Boolean>,Serializable,Comparable<UpgradeBooleanModifier>,Constable
public enum UpgradeBooleanModifier
extends Enum<UpgradeBooleanModifier>
implements UpgradeModifier<Boolean>
An
UpgradeModifier for boolean skill parameters.
Unlike numeric modifiers that add/subtract, boolean modifiers unconditionally replace the current value with their own. This is typically used to enable or disable a skill feature at a specific level (e.g., enabling fire aspect on the Damage skill).
Implemented as an enum with exactly two constants: True and False.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionApplies this modifier to the given current value, producing an updated result.value()Returns the raw modifier value carried by this instance.static UpgradeBooleanModifierReturns the enum constant of this class with the specified name.static UpgradeBooleanModifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
True
Modifier that sets the parameter totrue. -
False
Modifier that sets the parameter tofalse.
-
-
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
-
modify
Applies this modifier to the given current value, producing an updated result. Unconditionally returns this modifier's boolean value, ignoring the input.- Specified by:
modifyin interfaceUpgradeModifier<Boolean>- Parameters:
value- the current parameter value before modification- Returns:
- the modified parameter value
-
value
Description copied from interface:UpgradeModifierReturns the raw modifier value carried by this instance.- Specified by:
valuein interfaceUpgradeModifier<Boolean>- Returns:
- the value this modifier applies
-