public abstract class AbstractDifferenceList extends Object implements IDifferenceList
Modifier and Type | Field and Description |
---|---|
protected List<IDifference> |
differences |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDifferenceList() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(IDifference childDiff)
Adds a new
IDifference as child to this tree. |
void |
addChildren(List<IDifference> children)
Adds multiple
IDifference s as child to this tree. |
int |
childCount()
Returns the number of children of this
IDifference . |
Iterable<IDifference> |
getChildren()
|
protected List<IDifference> differences
public void addChild(IDifference childDiff)
IDifference
as child to this tree. For example, an IAtom
difference
would have a child difference for Point2d
.addChild
in interface IDifferenceList
childDiff
- child IDifference
to add to this IDifference
public void addChildren(List<IDifference> children)
IDifference
s as child to this tree.addChildren
in interface IDifferenceList
children
- a List
of IDifference
s to add to this IDifference
public Iterable<IDifference> getChildren()
getChildren
in interface IDifferenceList
Iterable
implementation with all childrenpublic int childCount()
IDifference
.childCount
in interface IDifferenceList
Copyright © 2018. All Rights Reserved.