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

Method getEqModifierKeyed

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

Gets the eqModifierKeyed attribute of the Equipment object @param eqModKey Description of the Parameter @param bPrimary if True then deal with the primary head @return The eqModifierKeyed value

(final Object eqModKey, final boolean bPrimary)

Source from the content-addressed store, hash-verified

936 * @return The eqModifierKeyed value
937 */
938 public EquipmentModifier getEqModifierKeyed(final Object eqModKey, final boolean bPrimary)
939 {
940
941 final List<EquipmentModifier> eqModList = getEqModifierList(bPrimary);
942
943 return eqModList.stream().filter(eqMod -> eqMod.getKeyName().equals(eqModKey)).findFirst().orElse(null);
944
945 }
946
947 /**
948 * Gets the eqModifierList attribute of the Equipment object

Callers 6

isPreTypeMethod · 0.95
addEqModifierMethod · 0.95
removeEqModifierMethod · 0.95
typeListMethod · 0.95
getWeaponInfoMethod · 0.95

Calls 5

getEqModifierListMethod · 0.95
streamMethod · 0.80
orElseMethod · 0.65
equalsMethod · 0.65
getKeyNameMethod · 0.65

Tested by

no test coverage detected