Interface ComparableNode
-
- All Superinterfaces:
Iterable<ComparableNode>
- All Known Implementing Classes:
AbstractComparableNode
,ContentNode
,RenderableNode
public interface ComparableNode extends Iterable<ComparableNode>
-
-
Field Summary
Fields Modifier and Type Field Description static int
IS_ROOT
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
childCount()
default boolean
containsPath(List<Integer> offsets)
ComparableNode
getChild(int position)
default boolean
isLeaf()
default boolean
isRoot()
default String
nodeRepresentation()
int
positionInParent()
default ComparableNode
query(List<Integer> offsets)
void
setPositionOfChildInParent(int position)
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Field Detail
-
IS_ROOT
static final int IS_ROOT
- See Also:
- Constant Field Values
-
-
Method Detail
-
childCount
int childCount()
-
positionInParent
int positionInParent()
-
setPositionOfChildInParent
void setPositionOfChildInParent(int position)
-
getChild
ComparableNode getChild(int position)
-
nodeRepresentation
default String nodeRepresentation()
-
isRoot
default boolean isRoot()
-
isLeaf
default boolean isLeaf()
-
query
default ComparableNode query(List<Integer> offsets)
-
-