Enum PluginDependency.LoadOrder
- java.lang.Object
-
- java.lang.Enum<PluginDependency.LoadOrder>
-
- org.spongepowered.plugin.metadata.model.PluginDependency.LoadOrder
-
- All Implemented Interfaces:
Serializable,Comparable<PluginDependency.LoadOrder>
- Enclosing interface:
- PluginDependency
public static enum PluginDependency.LoadOrder extends Enum<PluginDependency.LoadOrder>
Represents the ordering of how dependencies are loaded versus others.A vendor *may* choose to introduce additional behavior beyond what is documented here. It is recommended to consult with that entity on any further behavioral changes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PluginDependency.LoadOrdervalueOf(String name)Returns the enum constant of this type with the specified name.static PluginDependency.LoadOrder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final PluginDependency.LoadOrder UNDEFINED
The plugin can be loaded regardless of when the dependency is loaded.
-
BEFORE
public static final PluginDependency.LoadOrder BEFORE
The plugin must be loaded before the dependency
-
AFTER
public static final PluginDependency.LoadOrder AFTER
The plugin must be loaded after the dependency.
-
-
Method Detail
-
values
public static PluginDependency.LoadOrder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PluginDependency.LoadOrder c : PluginDependency.LoadOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PluginDependency.LoadOrder valueOf(String name)
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
-
-