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

Method isEmpty

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

Returns true if this ClassFacet does not contain any PCClass objects for the Player Character represented by the given CharID. @param id The CharId representing the PlayerCharacter to test if any PCClass objects are contained by this AbstractListFacet @return true if this Clas

(CharID id)

Source from the content-addressed store, hash-verified

277 * otherwise (if it does contain items for the Player Character)
278 */
279 public boolean isEmpty(CharID id)
280 {
281 ClassInfo info = getClassInfo(id);
282 return info == null || info.isEmpty();
283 }
284
285 /**
286 * Returns true if this ClassFacet contains the given PCClass in the list of

Callers

nothing calls this directly

Calls 2

getClassInfoMethod · 0.95
isEmptyMethod · 0.95

Tested by

no test coverage detected