Package com.pnfsoftware.jeb.util.base
Class Enums
java.lang.Object
com.pnfsoftware.jeb.util.base.Enums
Utility code for enumerations (
enum
).-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Enums
public Enums()
-
-
Method Details
-
getValue
- Type Parameters:
T
-- Parameters:
e
-- Returns:
-
fromValue
Retrieve an enumerated constant by 'value'. The value - not be confused with the ordinal - are provided to enum fields by theEnums.Value
annotation.- Type Parameters:
T
-- Parameters:
c
-value
-- Returns:
-
isAnyOf
- Type Parameters:
T
-- Parameters:
e
- an enumerated constantvalues
- a list of enums entries- Returns:
- true if `e` is found in the list of candidates, false otherwise
-