| Package | Description |
|---|---|
| org.kuali.common.util.tree |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractNode<T> |
class |
ImmutableNode<T> |
class |
MutableNode<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<Node<T>> |
Trees.breadthFirst(List<Node<T>> nodes) |
static <T> List<Node<T>> |
Trees.breadthFirst(Node<T> node) |
Iterable<Node<T>> |
NodeTraverser.children(Node<T> root) |
List<Node<T>> |
Node.getChildren() |
List<Node<T>> |
MutableNode.getChildren()
Returns an immutable list of the nodes current children
|
static <T> List<Node<T>> |
Trees.getLeaves(List<Node<T>> nodes) |
static <T> List<Node<T>> |
Trees.getLeaves(Node<T> root) |
com.google.common.base.Optional<Node<T>> |
Node.getParent() |
com.google.common.base.Optional<Node<T>> |
MutableNode.getParent() |
List<Node<T>> |
AbstractNode.getPath()
Returns the path from the root, to get to this node.
|
List<Node<T>> |
Node.getPath() |
static <T> List<Node<T>> |
Trees.postOrder(Node<T> node) |
static <T> List<Node<T>> |
Trees.preOrder(Node<T> node) |
| Modifier and Type | Method and Description |
|---|---|
T |
NodeElementFunction.apply(Node<T> node) |
String |
NodeStringFunction.apply(Node<T> node) |
static <T> List<Node<T>> |
Trees.breadthFirst(Node<T> node) |
static <T> List<T> |
Trees.breadthFirstElements(Node<T> node) |
Iterable<Node<T>> |
NodeTraverser.children(Node<T> root) |
static <T> ImmutableNode<T> |
ImmutableNode.copyOf(Node<T> node) |
static <T> MutableNode<T> |
MutableNode.copyOf(Node<T> node) |
static <T> List<Node<T>> |
Trees.getLeaves(Node<T> root) |
static <T> String |
Trees.html(Node<T> node) |
static <T> String |
Trees.html(Node<T> node,
com.google.common.base.Function<Node<T>,String> converter) |
static <T> String |
Trees.html(Node<T> node,
int indent,
com.google.common.base.Function<Node<T>,String> converter) |
static <T> String |
Trees.html(String title,
Node<T> node) |
static <T> String |
Trees.html(String title,
Node<T> node,
com.google.common.base.Function<Node<T>,String> converter) |
boolean |
AbstractNode.isAncestor(Node<T> parent)
Return true if this node descends from parent OR is parent
|
boolean |
Node.isAncestor(Node<T> parent) |
boolean |
AbstractNode.isChild(Node<T> parent)
Return true if this node is a child of parent
|
boolean |
Node.isChild(Node<T> parent) |
boolean |
AbstractNode.isParent(Node<T> child)
Return true if this node is a parent of child
|
boolean |
Node.isParent(Node<T> child) |
static <T> List<Node<T>> |
Trees.postOrder(Node<T> node) |
static <T> List<Node<T>> |
Trees.preOrder(Node<T> node) |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<Node<T>> |
Trees.breadthFirst(List<Node<T>> nodes) |
static <T> List<Node<T>> |
Trees.getLeaves(List<Node<T>> nodes) |
static <T> String |
Trees.html(Node<T> node,
com.google.common.base.Function<Node<T>,String> converter) |
static <T> String |
Trees.html(Node<T> node,
int indent,
com.google.common.base.Function<Node<T>,String> converter) |
static <T> String |
Trees.html(String title,
List<Node<T>> nodes) |
static <T> String |
Trees.html(String title,
List<Node<T>> nodes,
com.google.common.base.Function<Node<T>,String> converter) |
static <T> String |
Trees.html(String title,
List<Node<T>> nodes,
com.google.common.base.Function<Node<T>,String> converter) |
static <T> String |
Trees.html(String title,
Node<T> node,
com.google.common.base.Function<Node<T>,String> converter) |
| Constructor and Description |
|---|
ImmutableNode(Node<T> node) |
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.