List of utility methods to do Enum Get
Object | getPrivateEnum(Class klass, String enumName, String constantName) get Private Enum for (Class declaredClass : klass.getDeclaredClasses()) { if (declaredClass.getCanonicalName().equals(enumName)) { for (Object t : declaredClass.getEnumConstants()) { if (t.toString().equals(constantName)) { return t; return null; |
Object | getPrivateEnum(Class> klass, String enumName, String constantName) get Private Enum for (Class declaredClass : klass.getDeclaredClasses()) { if (declaredClass.getCanonicalName().equals(enumName)) { for (Object t : declaredClass.getEnumConstants()) { if (t.toString().equals(constantName)) { return t; return null; |