Uses of Interface
io.vavr.collection.Tree
-
Packages that use Tree Package Description io.vavr BesideAPIthe io.vavr package contains core types like (Checked)Functions and Tuples.io.vavr.collection Purely functional collections based on Traversable. -
-
Uses of Tree in io.vavr
Methods in io.vavr that return Tree Modifier and Type Method Description default Tree<T>Value. toTree()Converts this to aTree. -
Uses of Tree in io.vavr.collection
Classes in io.vavr.collection that implement Tree Modifier and Type Class Description static classTree.Empty<T>The empty tree.static classTree.Node<T>Represents a tree node.Methods in io.vavr.collection that return Tree Modifier and Type Method Description default <R> Tree<R>Tree. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)static <T> Tree<T>Tree. fill(int n, @NonNull java.util.function.Supplier<? extends T> s)Returns a Tree containingnvalues supplied by a given Suppliers.static <T> Tree<T>Tree. fill(int n, T element)Returns a Tree containingntimes the givenelementdefault <U> Tree<U>Tree. flatMap(@NonNull java.util.function.Function<? super T,? extends java.lang.Iterable<? extends U>> mapper)static <T,U>
Tree<U>TreeModule. flatMap(@NonNull Tree.Node<T> node, @NonNull java.util.function.Function<? super T,? extends java.lang.Iterable<? extends U>> mapper)default <U> Tree<U>Tree. map(@NonNull java.util.function.Function<? super T,? extends U> mapper)default <U> Tree<U>Tree. mapTo(U value)default Tree<java.lang.Void>Tree. mapToVoid()static <T> Tree<T>Tree. narrow(Tree<? extends T> tree)Narrows a widenedTree<? extends T>toTree<T>by performing a type-safe cast.static <T> Tree<T>Tree. of(T @NonNull ... values)Creates a Tree of the given elements.static <T> Tree<T>Tree. ofAll(@NonNull java.lang.Iterable<? extends T> iterable)Creates a Tree of the given elements.static <T> Tree<T>Tree. ofAll(@NonNull java.util.stream.Stream<? extends T> javaStream)Creates a Tree that contains the elements of the givenStream.default Tree<T>Tree. orElse(@NonNull java.lang.Iterable<? extends T> other)default Tree<T>Tree. orElse(@NonNull java.util.function.Supplier<? extends java.lang.Iterable<? extends T>> supplier)default Tree<T>Tree. peek(@NonNull java.util.function.Consumer<? super T> action)default Tree<T>Tree. replace(T currentElement, T newElement)default Tree<T>Tree. replaceAll(T currentElement, T newElement)static <T> Tree<T>Tree. tabulate(int n, @NonNull java.util.function.Function<? super java.lang.Integer,? extends T> f)Returns a Tree containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.default <U> Tree<Tuple2<T,U>>Tree. zip(@NonNull java.lang.Iterable<? extends U> that)static <T,U,R>
Tree<R>TreeModule. zip(@NonNull Tree.Node<T> node, @NonNull java.util.Iterator<? extends U> that, java.util.function.BiFunction<? super T,? super U,? extends R> mapper)default <U> Tree<Tuple2<T,U>>Tree. zipAll(@NonNull java.lang.Iterable<? extends U> that, T thisElem, U thatElem)static <T,U>
Tree<Tuple2<T,U>>TreeModule. zipAll(@NonNull Tree.Node<T> node, @NonNull java.util.Iterator<? extends U> that, U thatElem)default <U,R>
Tree<R>Tree. zipWith(@NonNull java.lang.Iterable<? extends U> that, java.util.function.BiFunction<? super T,? super U,? extends R> mapper)default Tree<Tuple2<T,java.lang.Integer>>Tree. zipWithIndex()default <U> Tree<U>Tree. zipWithIndex(@NonNull java.util.function.BiFunction<? super T,? super java.lang.Integer,? extends U> mapper)Methods in io.vavr.collection that return types with arguments of type Tree Modifier and Type Method Description static <T> java.util.stream.Collector<T,java.util.ArrayList<T>,Tree<T>>Tree. collector()Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aTree.default <T1,T2>
Tuple2<Tree<T1>,Tree<T2>>Tree. unzip(@NonNull java.util.function.Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper)default <T1,T2>
Tuple2<Tree<T1>,Tree<T2>>Tree. unzip(@NonNull java.util.function.Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper)default <T1,T2,T3>
Tuple3<Tree<T1>,Tree<T2>,Tree<T3>>Tree. unzip3(@NonNull java.util.function.Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper)default <T1,T2,T3>
Tuple3<Tree<T1>,Tree<T2>,Tree<T3>>Tree. unzip3(@NonNull java.util.function.Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper)default <T1,T2,T3>
Tuple3<Tree<T1>,Tree<T2>,Tree<T3>>Tree. unzip3(@NonNull java.util.function.Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper)Methods in io.vavr.collection with parameters of type Tree Modifier and Type Method Description static <T> Tree<T>Tree. narrow(Tree<? extends T> tree)Narrows a widenedTree<? extends T>toTree<T>by performing a type-safe cast.private static java.lang.StringTree.Node. toLispString(Tree<?> tree)Method parameters in io.vavr.collection with type arguments of type Tree Modifier and Type Method Description default <U> UTree. transform(@NonNull java.util.function.Function<? super Tree<T>,? extends U> f)Transforms thisTree.
-