MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / valueOf

Method valueOf

src/main/java/com/rtg/util/EnumHelper.java:72–78  ·  view source on GitHub ↗

see java.lang.Enum#valueOf(Class, String) @param str name of enum @return the enum value

(final String str)

Source from the content-addressed store, hash-verified

70 * @return the enum value
71 */
72 public T valueOf(final String str) {
73 final T ret = mValueOf.get(str);
74 if (ret == null) {
75 throw new IllegalArgumentException(str + " is not a valid enum value of type: " + mClass);
76 }
77 return ret;
78 }
79
80 /**
81 * Like an enum's values() method.

Callers 6

testEnumMethod · 0.95
UsageConfigurationMethod · 0.45
UsageLoggingMethod · 0.45
getEnvironmentMapMethod · 0.45
MathUtilsClass · 0.45
joinMethod · 0.45

Calls 1

getMethod · 0.65

Tested by 1

testEnumMethod · 0.76