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

Method getMinCharges

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

Get minimum charges @return minimum charges

()

Source from the content-addressed store, hash-verified

1326 * @return minimum charges
1327 */
1328 public int getMinCharges()
1329 {
1330 return getEqModifierList(true).stream().map(eqMod -> eqMod.get(IntegerKey.MIN_CHARGES)).filter(Objects::nonNull)
1331 .findFirst().orElse(0);
1332
1333 }
1334
1335 /**
1336 * Set the name (sets keyname also)

Callers 1

getSelectedChargesMethod · 0.80

Calls 4

getEqModifierListMethod · 0.95
streamMethod · 0.80
orElseMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected