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

Method getSubstitutionClassKeyed

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

Source from the content-addressed store, hash-verified

379 * during the construction of the PCClassLevel
380 */
381 public final SubstitutionClass getSubstitutionClassKeyed(final String aKey)
382 {
383 List<SubstitutionClass> substitutionClassList = getListFor(ListKey.SUBSTITUTION_CLASS);
384 if (substitutionClassList == null)
385 {
386 return null;
387 }
388
389 for (SubstitutionClass sc : substitutionClassList)
390 {
391 if (sc.getKeyName().equals(aKey))
392 {
393 return sc;
394 }
395 }
396
397 return null;
398 }
399
400 public void setLevel(final int newLevel, final PlayerCharacter aPC)
401 {

Callers 2

parseLineMethod · 0.80

Calls 3

getListForMethod · 0.65
equalsMethod · 0.65
getKeyNameMethod · 0.65

Tested by

no test coverage detected