Uses of Class
org.organicdesign.fp.collections.RrbTree
-
Packages that use RrbTree Package Description org.organicdesign.fp.collections Type-safe versions of immutable collections (mostly from Clojure), plus unmodifiable and immutable collection interfaces that fit these collections into the java.util interfaces. -
-
Uses of RrbTree in org.organicdesign.fp.collections
Subclasses of RrbTree in org.organicdesign.fp.collections Modifier and Type Class Description static class
RrbTree.ImRrbt<E>
Immutable version of anRrbTree
.static class
RrbTree.MutRrbt<E>
Mutable version of anRrbTree
.Methods in org.organicdesign.fp.collections that return RrbTree Modifier and Type Method Description abstract @NotNull RrbTree<E>
RrbTree. append(E t)
Returns a new BaseList with the additional item at the end.abstract @NotNull RrbTree<E>
RrbTree. appendSome(@NotNull Fn0<? extends @NotNull Option<E>> supplier)
If supplier returns Some, return a new BaseList with the additional item at the end.abstract @NotNull RrbTree<E>
RrbTree. insert(int idx, E element)
Inserts an item in the RRB tree pushing the current element at that index and all subsequent elements to the right.@NotNull RrbTree<E>
RrbTree. join(@NotNull RrbTree<E> that)
Joins the given tree to the right side of this tree (or this to the left side of that one) in something like O(log n) time.protected abstract @NotNull RrbTree<E>
RrbTree. makeNew(E @NotNull [] f, int fi, int fl, @NotNull org.organicdesign.fp.collections.RrbTree.Node<E> r, int s)
Allows removing duplicated code by letting super-class produce new members of subclass types.protected abstract @NotNull RrbTree<E>
RrbTree. mt()
Creates a new empty ("M-T") tree of the appropriate (mutable/immutable) type.abstract @NotNull RrbTree<E>
RrbTree. precat(@Nullable Iterable<? extends E> es)
Add items to the beginning of this Transformable ("precat" is a PREpending version of conCAT).abstract @NotNull RrbTree<E>
RrbTree. replace(int index, E item)
Replace the item at the given index.@NotNull RrbTree<E>
RrbTree. without(int index)
Returns a new RrbTree minus the given item (all items to the right are shifted left one) This is O(log n).Methods in org.organicdesign.fp.collections that return types with arguments of type RrbTree Modifier and Type Method Description @NotNull Tuple2<? extends RrbTree<E>,? extends RrbTree<E>>
RrbTree. split(int splitIndex)
Divides this RRB-Tree such that every index less-than the given index ends up in the left-hand tree and the indexed item and all subsequent ones end up in the right-hand tree.@NotNull Tuple2<? extends RrbTree<E>,? extends RrbTree<E>>
RrbTree. split(int splitIndex)
Divides this RRB-Tree such that every index less-than the given index ends up in the left-hand tree and the indexed item and all subsequent ones end up in the right-hand tree.Methods in org.organicdesign.fp.collections with parameters of type RrbTree Modifier and Type Method Description @NotNull RrbTree.ImRrbt<E>
RrbTree.ImRrbt. join(@NotNull RrbTree<E> that)
Joins the given tree to the right side of this tree (or this to the left side of that one) in something like O(log n) time.@NotNull RrbTree<E>
RrbTree. join(@NotNull RrbTree<E> that)
Joins the given tree to the right side of this tree (or this to the left side of that one) in something like O(log n) time.@NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. join(@NotNull RrbTree<E> that)
Joins the given tree to the right side of this tree (or this to the left side of that one) in something like O(log n) time.
-