@Test public void testIsRootNode() { assertTrue(rootNode.isRootNode()); TreeNode childNode = rootNode.getChildNode(0); assertFalse(childNode.isRootNode()); }
public boolean isRootNode() { return isRootNode; }
TreeNode implements Cloneable, Serializable { public boolean isRootNode() { return isRootNode; } }
TreeNode implements Cloneable, Serializable { public boolean isRootNode() { return isRootNode; } TreeNode(String description); }
TreeNode implements Cloneable, Serializable { public boolean isRootNode() { return isRootNode; } TreeNode(String description); String getDescription(); void setDescription(String description); void addChildNode(TreeNode child); TreeNode setChildNode(TreeNode child, int i); TreeNode getChildNode(int i); List<TreeNode> getChildNodes(); void setChildNodes(List<TreeNode> childNodes); TreeNode getParent(); void setParent(TreeNode parent); boolean isRootNode(); void setRootNode(boolean isRootNode); void traverse(TreeNode node); void traverse(); String toString(); boolean hasChildType(Class<? extends TreeNode> clazz); List<T> getChildType(Class<T> clazz); T getChildType(Class<T> clazz, int index); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
TreeNode implements Cloneable, Serializable { public boolean isRootNode() { return isRootNode; } TreeNode(String description); String getDescription(); void setDescription(String description); void addChildNode(TreeNode child); TreeNode setChildNode(TreeNode child, int i); TreeNode getChildNode(int i); List<TreeNode> getChildNodes(); void setChildNodes(List<TreeNode> childNodes); TreeNode getParent(); void setParent(TreeNode parent); boolean isRootNode(); void setRootNode(boolean isRootNode); void traverse(TreeNode node); void traverse(); String toString(); boolean hasChildType(Class<? extends TreeNode> clazz); List<T> getChildType(Class<T> clazz); T getChildType(Class<T> clazz, int index); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }