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

Method getListMods

code/src/java/pcgen/cdom/base/CDOMObject.java:908–922  ·  view source on GitHub ↗
(
		CDOMReference<L> listRef)

Source from the content-addressed store, hash-verified

906 }
907
908 public final <BT extends CDOMObject, L extends CDOMList<BT>> Collection<CDOMReference<BT>> getListMods(
909 CDOMReference<L> listRef)
910 {
911 if (cdomListMods == null)
912 {
913 return null;
914 }
915 Collection<CDOMReference<BT>> set =
916 (Collection<CDOMReference<BT>>) (Set<?>) cdomListMods.getSecondaryKeySet(listRef);
917 if (set == null || set.isEmpty())
918 {
919 return null;
920 }
921 return set;
922 }
923
924 public final <BT extends CDOMObject> Collection<CDOMReference<BT>> getSafeListMods(
925 CDOMReference<? extends CDOMList<BT>> listRef)

Callers 15

getSafeListModsMethod · 0.95
hasObjectOnListMethod · 0.95
dataAddedMethod · 0.95
dataAddedMethod · 0.95
dataAddedMethod · 0.95
dataAddedMethod · 0.95
testAddAbilityMethod · 0.80
testAddFeatAbilityMethod · 0.80
testAddLevelAbilityMethod · 0.80
testAddAbilityMethod · 0.80
testGetPCCTextMethod · 0.80

Calls 2

isEmptyMethod · 0.65
getSecondaryKeySetMethod · 0.45

Tested by 8

testAddAbilityMethod · 0.64
testAddFeatAbilityMethod · 0.64
testAddLevelAbilityMethod · 0.64
testAddAbilityMethod · 0.64
testGetPCCTextMethod · 0.64
testAddAbilityMethod · 0.64
passesMethod · 0.64