| 程序包 | 说明 |
|---|---|
| xdean.jex.extra.collection |
| 限定符和类型 | 方法和说明 |
|---|---|
Tree<T> |
Tree.add(T value)
Add the value as child
|
Tree<T> |
Tree.add(Tree<T> node)
Add the node as child
|
Tree<T> |
Tree.getParent() |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<Tree<T>> |
Tree.commonParent(Tree<T> other)
Get the first common parent of this node and the given node
|
Optional<Tree<T>> |
Tree.deepChild(T value)
Get the first matched child with the given value from all of the sub-tree
|
Optional<Tree<T>> |
Tree.deepChild(Tree<T> node)
Get the first matched child with the given value from all of the sub-tree
|
Optional<Tree<T>> |
Tree.getChild(T value)
Get the first matched child with the given value from children
|
Optional<Tree<T>> |
Tree.getChild(Tree<T> node)
Return the given node if it's this node's child
|
List<Tree<T>> |
Tree.getChildren() |
io.reactivex.Flowable<Tree<T>> |
Tree.parents()
Get all of the node's parent
|
Optional<io.reactivex.Flowable<Tree<T>>> |
Tree.pathTo(Tree<T> node) |
Optional<Tree<T>> |
Tree.removeFromParent()
Remove this node from its parent
|
io.reactivex.Flowable<Tree<T>> |
Tree.traverse(Traverse.Traverser traverser) |
| 限定符和类型 | 方法和说明 |
|---|---|
Tree<T> |
Tree.add(Tree<T> node)
Add the node as child
|
Optional<Tree<T>> |
Tree.commonParent(Tree<T> other)
Get the first common parent of this node and the given node
|
Optional<Tree<T>> |
Tree.deepChild(Tree<T> node)
Get the first matched child with the given value from all of the sub-tree
|
Optional<Tree<T>> |
Tree.getChild(Tree<T> node)
Return the given node if it's this node's child
|
Optional<io.reactivex.Flowable<Tree<T>>> |
Tree.pathTo(Tree<T> node) |
boolean |
Tree.remove(Tree<T> node)
Remove the node from children
|
void |
Tree.swap(Tree<T> node)
Swap with the given node.
|
Copyright © 2018. All rights reserved.