public static Extended1Enum getEnum(String name) { return (Extended1Enum) Enum.getEnum(Extended3Enum.class, name); }
/** * <p>Gets an <code>Enum</code> object by class and name.</p> * * @param enumClass the class of the <code>Enum</code> to get * @param name the name of the Enum to get, may be <code>null</code> * @return the enum object * @throws IllegalArgumentException if the enum class is <code>null</code> */ public static Enum getEnum(Class enumClass, String name) { return Enum.getEnum(enumClass, name); }