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)
| 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() { |