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

Method getContents

code/src/java/pcgen/core/Equipment.java:5515–5520  ·  view source on GitHub ↗

Convenience method. author: Thomas Behr 27-03-02 @return a list with all Equipment objects this container holds; if this instance is no container, the list will be empty.

()

Source from the content-addressed store, hash-verified

5513 * instance is no container, the list will be empty.
5514 */
5515 public Collection<Equipment> getContents()
5516 {
5517
5518 return IntStream.range(0, getContainedEquipmentCount())
5519 .mapToObj(this::getContainedEquipment).collect(Collectors.toList());
5520 }
5521
5522 // ---------------------------
5523 // Container Definition methods

Callers 13

getContainedByIndexMethod · 0.95
getContainerByTypeMethod · 0.95
testParameterTreeMethod · 0.45
testMakeTree4Method · 0.45
testMakeTree5Method · 0.45
rebuildAbilityListsMethod · 0.45
moveEquipmentMethod · 0.45
updateOutputOrderMethod · 0.45
getSelectedCampaignsMethod · 0.45
setSelectedCampaignMethod · 0.45
actionPerformedMethod · 0.45

Calls 1

Tested by 3

testParameterTreeMethod · 0.36
testMakeTree4Method · 0.36
testMakeTree5Method · 0.36