org.apache.storm.utils

## Class EnumUtil

- java.lang.Object
- - org.apache.storm.utils.EnumUtil

-     public class EnumUtil
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EnumUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.
    `static String` | `toMetricName(Enum type)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EnumUtil

          public EnumUtil()

  - ### Method Detail

    - #### toMetricName

          public static String toMetricName(Enum type)

    - #### 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 class
        `mapper` - The mapper producing value with key (enum constant)
        `T` - An Enum class
        `U` - Mapped class
      Returns:
        An Enum map

Copyright © 2021 The Apache Software Foundation. All rights reserved.