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

Method getConstant

code/src/java/pcgen/cdom/enumeration/Type.java:173–182  ·  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, a new Constant is created with the given String as the name of the Constant. @param name The name of the constant to be returned @return The Constant for t

(String name)

Source from the content-addressed store, hash-verified

171 * @return The Constant for the given name
172 */
173 public static Type getConstant(String name)
174 {
175 Type type = TYPE_MAP.get(name);
176 if (type == null)
177 {
178 type = new Type(name);
179 TYPE_MAP.put(name, type);
180 }
181 return type;
182 }
183
184 /**
185 * Returns the constant for the given String (the search for the constant is

Callers 15

setUpMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
testGetAllAbilitiesMethod · 0.95
setUpMethod · 0.95
testSkillsVisibilityMethod · 0.95
testCSkillServesAsMethod · 0.95
setUpMethod · 0.95
testPassServesAsTypeMethod · 0.95

Calls 2

getMethod · 0.65
putMethod · 0.65

Tested by 15

setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
testGetAllAbilitiesMethod · 0.76
setUpMethod · 0.76
testSkillsVisibilityMethod · 0.76
testCSkillServesAsMethod · 0.76
setUpMethod · 0.76
testPassServesAsTypeMethod · 0.76