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

Method splitModListByFormatCat

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

Split the equipmod list into seperate lists by format category. @param modList The list to be split. @param splitModList The array of receiving lists, one for each format cat.

(final List<EquipmentModifier> modList,
		final List<List<EquipmentModifier>> splitModList)

Source from the content-addressed store, hash-verified

4385 * The array of receiving lists, one for each format cat.
4386 */
4387 private void splitModListByFormatCat(final List<EquipmentModifier> modList,
4388 final List<List<EquipmentModifier>> splitModList)
4389 {
4390
4391 for (EquipmentModifier aModList : modList)
4392 {
4393 int o = aModList.getSafe(ObjectKey.FORMAT).ordinal();
4394 splitModList.get(o).add(aModList);
4395 }
4396 }
4397
4398 /**
4399 * remove contained Equipment

Callers 1

Calls 4

ordinalMethod · 0.80
getSafeMethod · 0.80
addMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected