MCPcopy Create free account
hub / github.com/BaseXdb/basex / get

Method get

basex-core/src/main/java/org/basex/util/http/Method.java:44–49  ·  view source on GitHub ↗

Returns an enum for the specified string. @param name method name @return enum or null

(final String name)

Source from the content-addressed store, hash-verified

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}

Callers 1

addMethodMethod · 0.95

Calls 3

nameMethod · 0.65
valuesMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected