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

Method getAssociationList

code/src/java/pcgen/core/Equipment.java:5736–5754  ·  view source on GitHub ↗
(CDOMObject obj)

Source from the content-addressed store, hash-verified

5734 }
5735
5736 public List<String> getAssociationList(CDOMObject obj)
5737 {
5738 List<String> list = new ArrayList<>();
5739 List<FixedStringList> assocList = assocSupt.getAssocList(obj, AssociationListKey.CHOICES);
5740 if (assocList != null)
5741 {
5742 assocList.stream().map(ac -> ac.get(0)).forEach(choiceStr -> {
5743 if (Constants.EMPTY_STRING.equals(choiceStr))
5744 {
5745 list.add(null);
5746 }
5747 else
5748 {
5749 list.add(choiceStr);
5750 }
5751 });
5752 }
5753 return list;
5754 }
5755
5756 public boolean hasAssociations(Object obj)
5757 {

Callers 15

getEqModifierStringMethod · 0.95
removeEqModifierMethod · 0.95
typeListMethod · 0.95
getWeaponInfoMethod · 0.95
removeAllAssociationsMethod · 0.95
allowMethod · 0.45
refreshLanguageListMethod · 0.45
addCategorisedAbilityMethod · 0.45
actMethod · 0.45
getAspectTextMethod · 0.45
returnNameMethod · 0.45

Calls 6

forEachMethod · 0.80
streamMethod · 0.80
getMethod · 0.65
equalsMethod · 0.65
addMethod · 0.65
getAssocListMethod · 0.45

Tested by 3

testTemplateFeatMethod · 0.36
containsExpectedMethod · 0.36
containsExpectedMethod · 0.36