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)
| 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 |
no test coverage detected