Package eu.bandm.tools.util.java
Class Enums
java.lang.Object
eu.bandm.tools.util.java.Enums
Library of constants and operations for working with enumeration classes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvalueMap
(E... items) Creates a map of the given enumeration values indexed by their name.Creates a map of all values of the given enumeration class indexed by their name.
-
Method Details
-
valueMap
Creates a map of all values of the given enumeration class indexed by their name.- Type Parameters:
E
- the enumeration type- Parameters:
cls
- an enumeration class- Returns:
- a complete map of names to values
-
valueMap
Creates a map of the given enumeration values indexed by their name.- Type Parameters:
E
- the enumeration type- Parameters:
items
- an array of enumeration values- Returns:
- a map of names to the given values
-