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

Method getSet

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

Returns a non-null copy of the Set of PCClass objects in this ClassFacet for the Player Character represented by the given CharID. This method returns an empty Set if no objects are in this ClassFacet for the Player Character identified by the given CharID. This method is value-semantic in that own

(CharID id)

Source from the content-addressed store, hash-verified

234 * Player Character represented by the given CharID
235 */
236 @Override
237 public Set<PCClass> getSet(CharID id)
238 {
239 ClassInfo info = getClassInfo(id);
240 if (info == null)
241 {
242 return Collections.emptySet();
243 }
244 return info.getClassSet();
245 }
246
247 /**
248 * Returns the count of PCClass objects in this ClassFacet for the Player

Callers

nothing calls this directly

Calls 2

getClassInfoMethod · 0.95
getClassSetMethod · 0.95

Tested by

no test coverage detected