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

Method getClassKeyed

code/src/java/pcgen/core/PlayerCharacter.java:905–916  ·  view source on GitHub ↗

Get a class, represented by a given key, from among those possessed by this pc. @param key the class's key @return PCClass

(final String key)

Source from the content-addressed store, hash-verified

903 * @return PCClass
904 */
905 public PCClass getClassKeyed(final String key)
906 {
907 for (PCClass aClass : getClassSet())
908 {
909 if (aClass.getKeyName().equalsIgnoreCase(key))
910 {
911 return aClass;
912 }
913 }
914
915 return null;
916 }
917
918 /**
919 * Get the class list.

Calls 3

getClassSetMethod · 0.95
equalsIgnoreCaseMethod · 0.80
getKeyNameMethod · 0.65