public class EnumUtil extends Object
Constructor and Description |
---|
EnumUtil() |
Modifier and Type | Method and Description |
---|---|
static <T extends Enum<T>,U> |
toEnumMap(Class<T> klass,
Function<? super T,? extends U> mapper)
Create an Enum map with given lambda mapper.
|
static String |
toMetricName(Enum type) |
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.
klass
- the Enum classmapper
- The mapper producing value with key (enum constant)T
- An Enum classU
- Mapped classCopyright © 2020 The Apache Software Foundation. All rights reserved.