| Package | Description |
|---|---|
| org.organicdesign.fp |
A data definition language, and other tools for writing functional Java.
|
| org.organicdesign.fp.collections |
Type-safe versions of the immutable Clojure collections, plus unmodifiable and immutable
collection interfaces that extend the java.util collections, deprecating the mutate-in-place
methods (Unmod____) and adding methods that return a new, immutable, modified version of the
collection (Im____).
|
| 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> ImList<T> |
StaticImports.vec(T... items)
Returns a new PersistentVector of the given items.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MutableList<E>
You could think of this as a builder for an immutable map.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PersistentVector<E>
This started out as Rich Hickey's PersistentVector class from Clojure in late 2014.
|
static class |
PersistentVector.MutableVector<F> |
| Modifier and Type | Method and Description |
|---|---|
ImList<E> |
ImList.append(E e)
Adds one item to the end of the ImList.
|
default ImList<E> |
ImList.concat(Iterable<? extends E> es)
Efficiently adds items to the end of this ImList.
|
static <T> ImList<T> |
PersistentVector.fromXform(Transformable<T> trans)
Deprecated.
|
ImList<E> |
PersistentVector.immutable() |
ImList<E> |
ImList.immutable()
Returns a immutable version of this mutable list.
|
ImList<E> |
ImList.replace(int idx,
E e)
Replace the item at the given index.
|
default ImList<E> |
ImList.reverse()
Returns a reversed copy of this list.
|
| Modifier and Type | Method and Description |
|---|---|
default ImList<T> |
Transformable.toImList()
Realize a thread-safe immutable list to access items quickly O(log32 n) by index.
|
Copyright © 2017. All rights reserved.