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)
T
- An Enum classU
- Mapped classklass
- the Enum classmapper
- The mapper producing value with key (enum constant)Copyright © 2023 The Apache Software Foundation. All rights reserved.