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

Method valueOf

code/src/java/pcgen/cdom/enumeration/FactKey.java:106–114  ·  view source on GitHub ↗

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

(String name)

Source from the content-addressed store, hash-verified

104 * if the given String is not a previously defined FactKey
105 */
106 public static <T> FactKey<T> valueOf(String name)
107 {
108 FactKey<T> key = (FactKey<T>) typeMap.get(name);
109 if (key == null)
110 {
111 throw new IllegalArgumentException(name + " is not a previously defined FactKey");
112 }
113 return key;
114 }
115
116 /**
117 * Returns a Collection of all of the FactKeys in this Class.

Callers 15

evaluateMethod · 0.95
getAppliedNameMethod · 0.95
getAppliedNameMethod · 0.95
getTokenMethod · 0.95
checkFactKeyMethod · 0.95
passesMethod · 0.95
getHTMLInfoMethod · 0.95
getSetMethod · 0.95
canCastSpellTypeLevelMethod · 0.95
availableSpellsMethod · 0.95

Calls 1

getMethod · 0.65

Tested by 1

passesMethod · 0.76