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

Method getSubClassKeyed

code/src/java/pcgen/core/PCClass.java:357–374  ·  view source on GitHub ↗
(final String aKey)

Source from the content-addressed store, hash-verified

355 * construction of the PCClassLevel
356 */
357 public final SubClass getSubClassKeyed(final String aKey)
358 {
359 List<SubClass> subClassList = getListFor(ListKey.SUB_CLASS);
360 if (subClassList == null)
361 {
362 return null;
363 }
364
365 for (SubClass subClass : subClassList)
366 {
367 if (subClass.getKeyName().equals(aKey))
368 {
369 return subClass;
370 }
371 }
372
373 return null;
374 }
375
376 /*
377 * FINALPCCLASSONLY This is really an item that the PCClass knows, and then the

Callers 13

getClassAbbTokenMethod · 0.95
getClassTokenMethod · 0.95
validateAddLevelMethod · 0.95
dataAddedMethod · 0.95
dataRemovedMethod · 0.95
parseClassLineMethod · 0.95
getClassListTokenMethod · 0.80
getCastForLevelMethod · 0.80
getDisplayClassNameMethod · 0.80
setSubClassKeyMethod · 0.80

Calls 3

getListForMethod · 0.65
equalsMethod · 0.65
getKeyNameMethod · 0.65

Tested by

no test coverage detected