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

Method valueOf

src/main/java/com/rtg/mode/Protein.java:189–195  ·  view source on GitHub ↗

Get the Protein singleton with the specified value (aka name). @param str the name of a Protein singleton. @return the singleton Protein @throws IllegalArgumentException if str is not a valid name.

(final String str)

Source from the content-addressed store, hash-verified

187 * @throws IllegalArgumentException if str is not a valid name.
188 */
189 public static Protein valueOf(final String str) {
190 final Protein res = VALUE_OF.get(str);
191 if (res == null) {
192 throw new IllegalArgumentException(str);
193 }
194 return res;
195 }
196
197 @Override
198 public String toString() {

Callers 3

testMethod · 0.95
testIgnoreMethod · 0.95
encodeProteinMethod · 0.95

Calls 1

getMethod · 0.65

Tested by 2

testMethod · 0.76
testIgnoreMethod · 0.76