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

Method indexOfChild

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

Gets the index of a child @param child The child @return the index of the child

(final Object child)

Source from the content-addressed store, hash-verified

2855 * @return the index of the child
2856 */
2857 private int indexOfChild(final Object child)
2858 {
2859 if (!(child instanceof Equipment))
2860 {
2861 return -1;
2862 }
2863
2864 return getContainedEquipmentIndexOf((Equipment) child);
2865 }
2866
2867 /**
2868 * Adds a child to this Equipment

Callers 1

removeChildMethod · 0.95

Calls 1

Tested by

no test coverage detected