Returns an enum for the specified string. @param name method name @return enum or null
(final String name)
| 42 | * @return enum or {@code null} |
| 43 | */ |
| 44 | public static Method get(final String name) { |
| 45 | for(final Method method : values()) { |
| 46 | if(method.name().equals(name)) return method; |
| 47 | } |
| 48 | return null; |
| 49 | } |
| 50 | } |