Package de.marcely.bedwars.api
Enum MigrationProcess.Origin
- All Implemented Interfaces:
Serializable
,Comparable<MigrationProcess.Origin>
,java.lang.constant.Constable
- Enclosing interface:
MigrationProcess
The previous system that has been used from which we're migrating from.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe "Bedwars Reloaded" pluginThe "Bedwars1058" pluginFrom local storage to the current active oneFrom mongodb storage to the current active oneFrom sql storage to the current active one -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the given type is a storage type.static MigrationProcess.Origin
Returns the enum constant of this type with the specified name.static MigrationProcess.Origin[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BEDWARS1058
The "Bedwars1058" plugin -
BEDWARS_RELOADED
The "Bedwars Reloaded" plugin -
LOCAL
From local storage to the current active one -
SQL
From sql storage to the current active one -
MONGO_DB
From mongodb storage to the current active one
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isStorage
public boolean isStorage()- Returns:
Whether the given origin is a storage type
-