Package org.carrot2.util
Class EnumUtils
java.lang.Object
org.carrot2.util.EnumUtils
Various utility methods for working with Java 5 enum types.
-
Method Summary
-
Method Details
-
valueOf
Returns the enum instance corresponding to the providedname
ordefaultValue
if no enum value corresponds toname
.- Type Parameters:
T
- the generic type- Parameters:
name
- the nameenumClass
- the enum classdefaultValue
- the default value- Returns:
- the t
-