List of utility methods to do Enum Parse
T | tryParseEnum(Class Tries to parse a string into Enum, if unsuccessful returns null. if (string != null) { try { return Enum.valueOf(c, string); } catch (IllegalArgumentException ex) { return null; |
T | tryParseEnum(Object ob, Class try Parse Enum return tryParseEnum(ob, enumType, null);
|