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

Method containsAssociated

code/src/java/pcgen/core/Equipment.java:5716–5725  ·  view source on GitHub ↗
(CDOMObject obj, String o)

Source from the content-addressed store, hash-verified

5714 }
5715
5716 public boolean containsAssociated(CDOMObject obj, String o)
5717 {
5718 List<FixedStringList> list = assocSupt.getAssocList(obj, AssociationListKey.CHOICES);
5719 if (list != null)
5720 {
5721 return list.stream()
5722 .anyMatch(fsl -> FixedStringList.CASE_INSENSITIVE_ORDER.compare(fsl, new FixedStringList(o)) == 0);
5723 }
5724 return false;
5725 }
5726
5727 private int getSelectCorrectedAssociationCount(CDOMObject obj)
5728 {

Callers 1

setChoiceMethod · 0.80

Calls 3

streamMethod · 0.80
getAssocListMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected