Enum Class ReportStatus
- All Implemented Interfaces:
Serializable,Comparable<ReportStatus>,Constable
Dictates the status of effects in the menu.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe antithesis ofMENU_UNAVAILABLE; indicates that an effect should now be purchasable from the menu.The antithesis ofMENU_VISIBLE; indicates that an effect should no longer be visible in the menu.The antithesis ofMENU_AVAILABLE; indicates that an effect should no longer be purchasable from the menu.The antithesis ofMENU_HIDDEN; indicates that an effect should be visible in the menu.The JSON-specified value could not be decoded. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ReportStatusGets a status from its JSON string value.@NotNull StringgetValue()Gets the encoded string value of this status.toString()static ReportStatusReturns the enum constant of this class with the specified name.static ReportStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MENU_AVAILABLE
The antithesis ofMENU_UNAVAILABLE; indicates that an effect should now be purchasable from the menu. Note that this does not indicate that an effect should be visible; for that seeMENU_VISIBLE. -
MENU_UNAVAILABLE
The antithesis ofMENU_AVAILABLE; indicates that an effect should no longer be purchasable from the menu. -
MENU_VISIBLE
The antithesis ofMENU_HIDDEN; indicates that an effect should be visible in the menu. Note that this does not indicate that an effect should be purchasable; for that seeMENU_AVAILABLE. -
MENU_HIDDEN
The antithesis ofMENU_VISIBLE; indicates that an effect should no longer be visible in the menu. -
UNKNOWN
The JSON-specified value could not be decoded.
-
-
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
-
fromValue
Gets a status from its JSON string value. If a status by the provided name could not be found, returnsUNKNOWN.- Parameters:
value- JSON string value- Returns:
- result status value
-
getValue
Gets the encoded string value of this status.- Returns:
- json value
-
toString
- Overrides:
toStringin classEnum<ReportStatus>
-