public class Node<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<Node<T>> nodes) |
Node<T> |
add(Node<T> node) |
Set<T> |
collectLeafs(Predicate<T> filter) |
@Nullable Node<T> |
find(T element) |
Set<Node<T>> |
getChildren() |
T |
getElement() |
boolean |
isEmpty() |
String |
toString() |
@Nullable List<Node<T>> |
trace(T element) |
public Node(T element)
public void add(Collection<Node<T>> nodes)
public boolean isEmpty()
public T getElement()
Copyright © 2020. All rights reserved.