Enum WorldNameChecker.NameStatus
- java.lang.Object
-
- java.lang.Enum<WorldNameChecker.NameStatus>
-
- com.onarandombox.MultiverseCore.utils.WorldNameChecker.NameStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WorldNameChecker.NameStatus>
- Enclosing class:
- WorldNameChecker
public static enum WorldNameChecker.NameStatus extends java.lang.Enum<WorldNameChecker.NameStatus>
Result after checking validity of world name.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLACKLISTED
Name not valid as it is deemed blacklisted.INVALID_CHARS
Name not valid as it contains invalid characters.VALID
Name is valid.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WorldNameChecker.NameStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WorldNameChecker.NameStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALID
public static final WorldNameChecker.NameStatus VALID
Name is valid.
-
INVALID_CHARS
public static final WorldNameChecker.NameStatus INVALID_CHARS
Name not valid as it contains invalid characters.
-
BLACKLISTED
public static final WorldNameChecker.NameStatus BLACKLISTED
Name not valid as it is deemed blacklisted.
-
-
Method Detail
-
values
public static WorldNameChecker.NameStatus[] 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 (WorldNameChecker.NameStatus c : WorldNameChecker.NameStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorldNameChecker.NameStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-