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

Method getCount

code/src/java/pcgen/cdom/facet/SpellBookFacet.java:323–327  ·  view source on GitHub ↗

Returns the count of SpellBooks in this SpellBookFacet for the Player Character represented by the given CharID. @param id The CharID representing the Player Character for which the count of SpellBooks should be returned @return The count of SpellBooks in this SpellBookFacet f

(CharID id)

Source from the content-addressed store, hash-verified

321 * Character represented by the given CharID
322 */
323 public int getCount(CharID id)
324 {
325 Map<String, SpellBook> componentMap = getCachedMap(id);
326 return (componentMap == null) ? 0 : componentMap.size();
327 }
328
329 /**
330 * Removes the SpellBook with the given name from the list of SpellBooks

Callers

nothing calls this directly

Calls 2

getCachedMapMethod · 0.95
sizeMethod · 0.65

Tested by

no test coverage detected