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

Method checkContainerCapacity

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

Does this item fit in this container @param aTypeList The type list @param aQuant The total number of the item @return Does the item fit

(final SortedSet<String> aTypeList, final Float aQuant)

Source from the content-addressed store, hash-verified

4159 * @return Does the item fit
4160 */
4161 private boolean checkContainerCapacity(final SortedSet<String> aTypeList, final Float aQuant)
4162 {
4163
4164 return Capacity.ANY.equals(get(ObjectKey.TOTAL_CAPACITY)) || !("".equals(pickChildType(aTypeList, aQuant)));
4165 }
4166
4167 private List<EquipmentModifier> cloneEqModList(Equipment other, boolean primary)
4168 {

Callers 1

canContainMethod · 0.95

Calls 3

pickChildTypeMethod · 0.95
equalsMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected