Package dev.turboism.sdk.appearance
Enum Class AppearanceRestoreResult.Outcome
java.lang.Object
java.lang.Enum<AppearanceRestoreResult.Outcome>
dev.turboism.sdk.appearance.AppearanceRestoreResult.Outcome
- All Implemented Interfaces:
Serializable,Comparable<AppearanceRestoreResult.Outcome>,Constable
- Enclosing class:
- AppearanceRestoreResult
Typed terminal disposition for an appearance restore request.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRestoration failed and the runtime retained the current ownership state.The caller did not own an active appearance override.The runtime restored the baseline captured for this plugin's owned override.The provider or captured restore point is unavailable. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AppearanceRestoreResult.Outcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESTORED
The runtime restored the baseline captured for this plugin's owned override. -
NO_OWNED_OVERRIDE
The caller did not own an active appearance override. -
UNAVAILABLE
The provider or captured restore point is unavailable. -
FAILED_RESTORE
Restoration failed and the runtime retained the current ownership state.
-
-
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
-