| 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).
|
| Modifier and Type | Method and Description |
|---|---|
static <T> RrbTree.MutableRrbt<T> |
StaticImports.mutableRrb(T... items)
Returns a mutable RRB Tree
RrbTree.MutableRrbt of the given items. |
| Modifier and Type | Method and Description |
|---|---|
RrbTree.MutableRrbt<E> |
RrbTree.MutableRrbt.append(E val)
Adds one item to the end of the ImList.
|
RrbTree.MutableRrbt<E> |
RrbTree.MutableRrbt.concat(Iterable<? extends E> es)
Efficiently adds items to the end of this ImList.
|
static <T> RrbTree.MutableRrbt<T> |
RrbTree.emptyMutable()
Returns the empty, mutable RRB-Tree (there is only one)
|
RrbTree.MutableRrbt<E> |
RrbTree.MutableRrbt.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.
|
RrbTree.MutableRrbt<E> |
RrbTree.ImRrbt.mutable()
Returns a mutable list (builder)
|
RrbTree.MutableRrbt<E> |
RrbTree.MutableRrbt.replace(int index,
E item)
Replace the item at the given index.
|
RrbTree.MutableRrbt<E> |
RrbTree.MutableRrbt.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).
|
| Modifier and Type | Method and Description |
|---|---|
Tuple2<RrbTree.MutableRrbt<E>,RrbTree.MutableRrbt<E>> |
RrbTree.MutableRrbt.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.
|
Tuple2<RrbTree.MutableRrbt<E>,RrbTree.MutableRrbt<E>> |
RrbTree.MutableRrbt.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.
|
| Modifier and Type | Method and Description |
|---|---|
default RrbTree.MutableRrbt<T> |
Transformable.toMutableRrbt()
Realize a mutable RRB-Tree.
|
Copyright © 2019. All rights reserved.