Class EnumUtil

java.lang.Object
org.dellroad.stuff.java.EnumUtil

public final class EnumUtil extends Object
Utility methods for Enums.
  • Method Details

    • getValues

      public static <T extends Enum<?>> List<T> getValues(Class<T> enumClass)
      Get all instances of the given Enum class in a list in their natural ordering.
      Type Parameters:
      T - enum type
      Parameters:
      enumClass - enum type class object
      Returns:
      unmodifiable list of enum values