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

Method getSafeListFor

code/src/java/pcgen/cdom/base/CDOMObject.java:567–570  ·  view source on GitHub ↗

Returns a non-null copy of the list of objects stored in this CDOMObject for the given ListKey. No order is guaranteed, and the returned List may contain duplicates. There is no guarantee that duplicate items are sequential items in the returned List. This method is value-semantic in that no chang

(ListKey<T> key)

Source from the content-addressed store, hash-verified

565 * key.
566 */
567 public final <T> List<T> getSafeListFor(ListKey<T> key)
568 {
569 return listChar != null && listChar.containsListFor(key) ? listChar.getListFor(key) : new ArrayList<>();
570 }
571
572 /**
573 * Returns a non-null Set of the objects stored in this CDOMObject for the

Callers 12

getRawBonusListMethod · 0.95
isUnselectedMethod · 0.95
dataAddedMethod · 0.95
dataRemovedMethod · 0.95
dataAddedMethod · 0.95
dataAddedMethod · 0.95
dataAddedMethod · 0.95
dataAddedMethod · 0.95
dataAddedMethod · 0.95
dataAddedMethod · 0.95
parseLevelAbilityInfoMethod · 0.95
commitMethod · 0.95

Calls 2

containsListForMethod · 0.65
getListForMethod · 0.65

Tested by

no test coverage detected