Package | Description |
---|---|
io.vavr |
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples. |
io.vavr.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
default <ID> List<Tree.Node<T>> |
Value.toTree(Function<? super T,? extends ID> idMapper,
Function<? super T,? extends ID> parentMapper)
|
Modifier and Type | Method and Description |
---|---|
static <T> Tree.Node<T> |
Tree.of(T value)
Returns a new Node containing the given value and having no children.
|
static <T> Tree.Node<T> |
Tree.of(T value,
Iterable<Tree.Node<T>> children)
Returns a new Node containing the given value and having the given children.
|
static <T> Tree.Node<T> |
Tree.of(T value,
Tree.Node<T>... children)
Returns a new Node containing the given value and having the given children.
|
static <T> Tree.Node<T> |
Tree.recurse(T seed,
Function<? super T,? extends Iterable<? extends T>> descend)
Recursively builds a non-empty
Tree , starting with the given seed value and proceeding in depth-first order. |
Modifier and Type | Method and Description |
---|---|
static <T,ID> List<Tree.Node<T>> |
Tree.build(Iterable<? extends T> source,
Function<? super T,? extends ID> idMapper,
Function<? super T,? extends ID> parentMapper)
Build a
List with roots of Tree from flat source. |
List<Tree.Node<T>> |
Tree.getChildren()
Returns the children of this tree.
|
List<Tree.Node<T>> |
Tree.Node.getChildren() |
List<Tree.Node<T>> |
Tree.Empty.getChildren() |
default Seq<Tree.Node<T>> |
Tree.traverse()
Traverses this tree in
Tree.Order.PRE_ORDER . |
default Seq<Tree.Node<T>> |
Tree.traverse(Tree.Order order)
Traverses this tree in a specific order.
|
Modifier and Type | Method and Description |
---|---|
static <T> Tree.Node<T> |
Tree.of(T value,
Tree.Node<T>... children)
Returns a new Node containing the given value and having the given children.
|
Modifier and Type | Method and Description |
---|---|
static <T> Tree.Node<T> |
Tree.of(T value,
Iterable<Tree.Node<T>> children)
Returns a new Node containing the given value and having the given children.
|
Constructor and Description |
---|
Node(T value,
List<Tree.Node<T>> children)
Constructs a rose tree branch.
|
Copyright © 2019. All Rights Reserved.