Package org.apache.storm.utils
Class EnumUtil
java.lang.Object
org.apache.storm.utils.EnumUtil
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EnumUtil
public EnumUtil()
-
-
Method Details
-
toMetricName
-
toEnumMap
public 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 classmapper
- The mapper producing value with key (enum constant)- Returns:
- An Enum map
-