Uses of Interface
io.vavr.collection.Tree
Packages that use Tree
Package
Description
Beside
API
the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
-
Uses of Tree in io.vavr
-
Uses of Tree in io.vavr.collection
Classes in io.vavr.collection that implement TreeModifier and TypeClassDescriptionstatic final class
Tree.Empty<T>
The empty tree.static final class
Tree.Node<T>
Represents a tree node.Methods in io.vavr.collection that return TreeModifier and TypeMethodDescriptiondefault <R> Tree
<R> Tree.collect
(PartialFunction<? super T, ? extends R> partialFunction) static <T> Tree
<T> Returns a Tree containingn
values supplied by a given Suppliers
.static <T> Tree
<T> Tree.fill
(int n, T element) Returns a Tree containingn
times the givenelement
default <U> Tree
<U> static <T,
U> Tree <U> default <U> Tree
<U> static <T> Tree
<T> Narrows a widenedTree<? extends T>
toTree<T>
by performing a type-safe cast.static <T> Tree
<T> Tree.of
(T... values) Creates a Tree of the given elements.static <T> Tree
<T> Creates a Tree of the given elements.static <T> Tree
<T> Creates a Tree that contains the elements of the givenStream
.Tree.replaceAll
(T currentElement, T newElement) static <T> Tree
<T> Returns a Tree containingn
values of a given Functionf
over a range of integer values from 0 ton - 1
.static <T,
U, R> Tree <R> TreeModule.zip
(Tree.Node<T> node, Iterator<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) default <U,
R> Tree <R> Tree.zipWith
(Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) Tree.zipWithIndex()
default <U> Tree
<U> Tree.zipWithIndex
(BiFunction<? super T, ? super Integer, ? extends U> mapper) Methods in io.vavr.collection that return types with arguments of type TreeModifier and TypeMethodDescriptionTree.collector()
Returns aCollector
which may be used in conjunction withStream.collect(java.util.stream.Collector)
to obtain aTree
.Methods in io.vavr.collection with parameters of type TreeModifier and TypeMethodDescriptionstatic <T> Tree
<T> Narrows a widenedTree<? extends T>
toTree<T>
by performing a type-safe cast.private static String
Tree.Node.toLispString
(Tree<?> tree) Method parameters in io.vavr.collection with type arguments of type Tree