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

Method getBookNames

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

Returns a non-null Collection of SpellBook names in this SpellBookFacet for the Player Character represented by the given CharID. This method returns an empty Set if no SpellBooks are in this SpellBookFacet for the Player Character identified by the given CharID. This method is value-semantic in th

(CharID id)

Source from the content-addressed store, hash-verified

248 * the Player Character represented by the given CharID
249 */
250 public Collection<String> getBookNames(CharID id)
251 {
252 Map<String, SpellBook> componentMap = getCachedMap(id);
253 if (componentMap == null)
254 {
255 return Collections.emptySet();
256 }
257 return Collections.unmodifiableSet(componentMap.keySet());
258 }
259
260 /**
261 * Returns a non-null copy of the Collection of SpellBooks in this

Callers 3

getSpellBookNamesMethod · 0.80
cloneMethod · 0.80
getSpellBookNamesMethod · 0.80

Calls 2

getCachedMapMethod · 0.95
keySetMethod · 0.45

Tested by

no test coverage detected