Class EnumUtil


  • public final class EnumUtil
    extends Object
    Author:
    Teodor Danciu (teodord@users.sourceforge.net)
    • Method Detail

      • getByValue

        public static <T extends NamedValueEnum<?>> T getByValue​(T[] values,
                                                                 Object value)
      • getEnumByName

        public static <T extends NamedEnum> T getEnumByName​(T[] values,
                                                            String name)
      • getByConstantName

        public static <T extends Enum<?>> T getByConstantName​(T[] values,
                                                              String name)