Package com.sk89q.worldedit.util
Class Enums
java.lang.Object
com.sk89q.worldedit.util.Enums
Helper methods for enums.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<T>>
TfindByValue
(Class<T> enumType, String... values) Search the given enum for a value that is equal to the one of the given values, searching in an ascending manner.
-
Method Details
-
findByValue
Search the given enum for a value that is equal to the one of the given values, searching in an ascending manner.- Type Parameters:
T
- the type of enum- Parameters:
enumType
- the enum typevalues
- the list of values- Returns:
- the found value or null
-