Class AbstractComparableNode<T>
java.lang.Object
de.hsh.graja.regression.treecompare.AbstractComparableNode<T>
- All Implemented Interfaces:
ComparableNode
,Iterable<ComparableNode>
- Direct Known Subclasses:
ContentNode
-
Field Summary
Fields inherited from interface de.hsh.graja.regression.treecompare.ComparableNode
IS_ROOT
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractComparableNode
(T value) AbstractComparableNode
(T value, ComparableNode... children) AbstractComparableNode
(T value, List<ComparableNode> children) -
Method Summary
Modifier and TypeMethodDescriptionfinal int
final ComparableNode
getChild
(int position) getValue()
iterator()
final int
final void
setPositionOfChildInParent
(int position) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.hsh.graja.regression.treecompare.ComparableNode
containsPath, isLeaf, isRoot, nodeRepresentation, query
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractComparableNode
-
AbstractComparableNode
-
AbstractComparableNode
-
-
Method Details
-
getValue
-
childCount
public final int childCount()- Specified by:
childCount
in interfaceComparableNode
-
positionInParent
public final int positionInParent()- Specified by:
positionInParent
in interfaceComparableNode
-
setPositionOfChildInParent
public final void setPositionOfChildInParent(int position) - Specified by:
setPositionOfChildInParent
in interfaceComparableNode
-
getChild
- Specified by:
getChild
in interfaceComparableNode
-
iterator
-