Package org.apache.storm.utils
Class EnumUtil
java.lang.Object
org.apache.storm.utils.EnumUtil
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
EnumUtilpublic EnumUtil()
 
- 
- 
Method Details- 
toMetricName
- 
toEnumMappublic static <T extends Enum<T>,U> EnumMap<T,U> toEnumMap(Class<T> klass, Function<? super T, ? extends U> mapper) Create an Enum map with given lambda mapper.- Parameters:
- klass- the Enum class
- mapper- The mapper producing value with key (enum constant)
- Returns:
- An Enum map
 
 
-