Class AbstractComparableNode<T>
- java.lang.Object
-
- de.hsh.graja.regression.treecompare.AbstractComparableNode<T>
-
- All Implemented Interfaces:
ComparableNode
,Iterable<ComparableNode>
- Direct Known Subclasses:
ContentNode
public abstract class AbstractComparableNode<T> extends Object implements ComparableNode
-
-
Field Summary
-
Fields inherited from interface de.hsh.graja.regression.treecompare.ComparableNode
IS_ROOT
-
-
Constructor Summary
Constructors Constructor Description AbstractComparableNode(T value)
AbstractComparableNode(T value, ComparableNode... children)
AbstractComparableNode(T value, List<ComparableNode> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
childCount()
ComparableNode
getChild(int position)
T
getValue()
Iterator<ComparableNode>
iterator()
int
positionInParent()
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 Detail
-
AbstractComparableNode
public AbstractComparableNode(T value)
-
AbstractComparableNode
public AbstractComparableNode(T value, List<ComparableNode> children)
-
AbstractComparableNode
@SafeVarargs public AbstractComparableNode(T value, ComparableNode... children)
-
-
Method Detail
-
getValue
public T 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
public final ComparableNode getChild(int position)
- Specified by:
getChild
in interfaceComparableNode
-
iterator
public Iterator<ComparableNode> iterator()
-
-