public class ParentChildRelationship
extends java.lang.Object
Identifiable
parent and its child Identifiables
in a Specification
SpecObject
hierarchy. The concept of whether two hierarchies are different applies
either in a shallow sense i.e., whether the immediate children of the same parent are the same in ReqIF1 and ReqIF2
and also a deep sense where the structure below the parent is fully traversed to detect changes.Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
equals(ParentChildRelationship other,
boolean deep)
Compares the
ParentChildRelationship at a particular parent in the Specification
hierarchy in this with the same parent in other in terms of whether the
structure is exactly the same |
public java.lang.Boolean equals(ParentChildRelationship other, boolean deep)
ParentChildRelationship
at a particular parent in the Specification
hierarchy in this with the same parent in other in terms of whether the
structure is exactly the sameother
- the other ParentChildRelationship
object, not nulldeep
- Boolean
flag indicating whether to perform a shallow or deep comparisonBoolean
flag indicating equality