Package cdc.graphs.impl
Class BasicTree<N extends BasicTreeNode<N>>
- java.lang.Object
-
- cdc.graphs.impl.BasicTree<N>
-
- All Implemented Interfaces:
TreeAdapter<N>
- Direct Known Subclasses:
TestTree
public class BasicTree<N extends BasicTreeNode<N>> extends Object implements TreeAdapter<N>
-
-
Constructor Summary
Constructors Constructor Description BasicTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<N>getChildren(N node)NgetParent(N node)booleanhasChildren(N node)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cdc.graphs.TreeAdapter
areRelated, areRelatedOrEqual, areStrictlyRelated, areUnrelated, canSetParent, getDepth, getFirstCommonAncestor, getHeight, getIndex, getPath, getQIndex, getRelativePosition, getRoot, isLeaf, isOver, isOverOrEqual, isRoot, isStrictlyOver, isStrictlyUnder, isUnder, isUnderOrEqual
-
-
-
-
Method Detail
-
getParent
public N getParent(N node)
- Specified by:
getParentin interfaceTreeAdapter<N extends BasicTreeNode<N>>
-
getChildren
public Iterable<N> getChildren(N node)
- Specified by:
getChildrenin interfaceTreeAdapter<N extends BasicTreeNode<N>>
-
hasChildren
public boolean hasChildren(N node)
- Specified by:
hasChildrenin interfaceTreeAdapter<N extends BasicTreeNode<N>>
-
-