Uses of Class
org.organicdesign.fp.collections.RrbTree.MutRrbt
-
Packages that use RrbTree.MutRrbt Package Description org.organicdesign.fp A tiny data definition language for Java, in Java.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.org.organicdesign.fp.xform Immutable descriptions of data transformations (Transformable), and a highly efficient single-pass, short-circuiting implementation that carries out those transforms in a single pass (Xform). -
-
Uses of RrbTree.MutRrbt in org.organicdesign.fp
Methods in org.organicdesign.fp that return RrbTree.MutRrbt Modifier and Type Method Description static <T> @NotNull RrbTree.MutRrbt<T>
StaticImports. mutableRrb(T @Nullable ... items)
Returns a mutable RRB TreeRrbTree
of the given items. -
Uses of RrbTree.MutRrbt in org.organicdesign.fp.collections
Methods in org.organicdesign.fp.collections that return RrbTree.MutRrbt Modifier and Type Method Description @NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. append(E val)
Returns a new BaseList with the additional item at the end.@NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. appendSome(@NotNull Fn0<? extends @NotNull Option<E>> supplier)
If supplier returns Some, return a new BaseList with the additional item at the end.@NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. concat(@Nullable Iterable<? extends E> es)
Efficiently adds items to the end of this ImList.static <T> @NotNull RrbTree.MutRrbt<T>
RrbTree. emptyMutable()
Returns the empty, mutable RRB-Tree (there is only one)@NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. 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.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.protected @NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. makeNew(E @NotNull [] f, int fi, int fl, @NotNull org.organicdesign.fp.collections.RrbTree.Node<E> r, int s)
protected @NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. mt()
@NotNull RrbTree.MutRrbt<E>
RrbTree.ImRrbt. mutable()
Returns a mutable list (builder)@NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. replace(int index, E item)
Replace the item at the given index.@NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. 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.MutRrbt Modifier and Type Method Description @NotNull Tuple2<RrbTree.MutRrbt<E>,RrbTree.MutRrbt<E>>
RrbTree.MutRrbt. 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<RrbTree.MutRrbt<E>,RrbTree.MutRrbt<E>>
RrbTree.MutRrbt. 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. -
Uses of RrbTree.MutRrbt in org.organicdesign.fp.xform
Methods in org.organicdesign.fp.xform that return RrbTree.MutRrbt Modifier and Type Method Description default @NotNull RrbTree.MutRrbt<T>
Transformable. toMutRrbt()
Realize a mutable RRB-Tree.
-