MCPcopy Create free account
hub / github.com/PCGen/pcgen / valueOf

Method valueOf

code/src/java/pcgen/cdom/enumeration/Type.java:195–203  ·  view source on GitHub ↗

Returns the constant for the given String (the search for the constant is case insensitive). If the constant does not already exist, an IllegalArgumentException is thrown. @param name The name of the constant to be returned @return The Constant for the given name @throws IllegalArgumentE

(String name)

Source from the content-addressed store, hash-verified

193 * if the given String is not a previously defined Type
194 */
195 public static Type valueOf(String name)
196 {
197 Type type = TYPE_MAP.get(name);
198 if (type == null)
199 {
200 throw new IllegalArgumentException(name + " is not a previously defined Type");
201 }
202 return type;
203 }
204
205 /**
206 * Returns a Collection of all of the Constants in this Class.

Callers 15

buildUnselectedRaceMethod · 0.95
setUpMethod · 0.45
testValidSpecialCaseMethod · 0.45
getRankMethod · 0.45
getRankMethod · 0.45
testValidInputsMethod · 0.45
testValidInputsMethod · 0.45
testCopyContentsMethod · 0.45
LoadTestClass · 0.45

Calls 1

getMethod · 0.65

Tested by 12

buildUnselectedRaceMethod · 0.76
setUpMethod · 0.36
testValidSpecialCaseMethod · 0.36
getRankMethod · 0.36
getRankMethod · 0.36
testValidInputsMethod · 0.36
testValidInputsMethod · 0.36
testCopyContentsMethod · 0.36
countCampaignByNameMethod · 0.36