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

Method isPartOf

code/src/java/pcgen/core/character/EquipSet.java:581–592  ·  view source on GitHub ↗

Is this EquipSet part of the Equipment set located at rootId. @param rootId The id to test @return true if eqSet is a child of rootId

(String rootId)

Source from the content-addressed store, hash-verified

579 * @return true if eqSet is a child of rootId
580 */
581 public boolean isPartOf(String rootId)
582 {
583 // rootId = 0.1.
584 // parentIdPath = 0.10.
585 // OR
586 // rootId = 0.10.
587 // parentIdPath = 0.1.
588 final String abCalcId = rootId + Constants.EQUIP_SET_PATH_SEPARATOR;
589 final String abParentId = getParentIdPath() + Constants.EQUIP_SET_PATH_SEPARATOR;
590
591 return abParentId.startsWith(abCalcId);
592 }
593
594 public DefaultListFacade<EquipNode> getNodeList()
595 {

Callers 1

setCalcEquipmentListMethod · 0.80

Calls 1

getParentIdPathMethod · 0.95

Tested by

no test coverage detected