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

Method getCount

code/src/java/pcgen/cdom/facet/model/ClassFacet.java:257–266  ·  view source on GitHub ↗

Returns the count of PCClass objects in this ClassFacet for the Player Character represented by the given CharID. @param id The CharID representing the Player Character for which the count of PCClass objects should be returned @return The count of PCClass objects in this Class

(CharID id)

Source from the content-addressed store, hash-verified

255 * Character represented by the given CharID
256 */
257 @Override
258 public int getCount(CharID id)
259 {
260 ClassInfo info = getClassInfo(id);
261 if (info == null)
262 {
263 return 0;
264 }
265 return info.classCount();
266 }
267
268 /**
269 * Returns true if this ClassFacet does not contain any PCClass objects for

Callers

nothing calls this directly

Calls 2

getClassInfoMethod · 0.95
classCountMethod · 0.95

Tested by

no test coverage detected