Package com.ultikits.ultitools.services
Enum Class EconomyProvider.State
- All Implemented Interfaces:
Serializable,Comparable<EconomyProvider.State>,java.lang.constant.Constable
- Enclosing interface:
EconomyProvider
The three states an economy request can be in, named so the operator-facing message can
distinguish them (D-08): a missing plugin is not the same problem as a missing provider.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionVault is installed and a provider is registered — economy operations work.Vault is installed, but no economy plugin (e.g.No plugin namedVaultis installed on this server at all. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EconomyProvider.StateReturns the enum constant of this class with the specified name.static EconomyProvider.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VAULT_NOT_INSTALLED
No plugin namedVaultis installed on this server at all. -
NO_PROVIDER_REGISTERED
Vault is installed, but no economy plugin (e.g. EssentialsX) has registered a provider. -
AVAILABLE
Vault is installed and a provider is registered — economy operations work.
-
-
Constructor Details
-
State
private 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
-