Package ch.njol.skript.util
Class EnumUtils<E extends Enum<E>>
java.lang.Object
ch.njol.skript.util.EnumUtils<E>
@Deprecated(since="2.12",
forRemoval=true)
public final class EnumUtils<E extends Enum<E>>
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.This method attempts to match the string input against one of the string representations of the enumerators.Deprecated, for removal: This API element is subject to removal in a future version.This method returns the string representation of an enumerator.toString
(E enumerator, StringMode flag) Deprecated, for removal: This API element is subject to removal in a future version.This method returns the string representation of an enumerator
-
Constructor Details
-
EnumUtils
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
parse
Deprecated, for removal: This API element is subject to removal in a future version.This method attempts to match the string input against one of the string representations of the enumerators.- Parameters:
input
- a string to attempt to match against one the enumerators.- Returns:
- The enumerator matching the input, or null if no match could be made.
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.This method returns the string representation of an enumerator.- Parameters:
enumerator
- The enumerator to represent as a string.flags
- not currently used- Returns:
- A string representation of the enumerator.
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.This method returns the string representation of an enumerator- Parameters:
enumerator
- The enumerator to represent as a stringflag
- not currently used- Returns:
- A string representation of the enumerator
-
getAllNames
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- A comma-separated string containing a list of all names representing the enumerators. Note that some entries may represent the same enumerator.
-
EnumParser
instead.