Class EnumUtils
java.lang.Object
org.deltava.util.EnumUtils
A utility class for enumeration operations.
- Since:
- 9.0
- Version:
- 11.5
- Author:
- Luke
-
Method Summary
-
Method Details
-
parse
Exception-safe enumeration parser.- Type Parameters:
E
- the Enumeration- Parameters:
c
- the Enumeration Classvalue
- the value to parsedefaultValue
- the default value if invalid or an error occurs- Returns:
- an Enumeration value
-
max
Returns the higher of two enumerations.- Parameters:
e1
- the first enume2
- the second enum- Returns:
- the larger enum based on ordinal
-