| 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.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BaseList<E>
Adds copy-on-write, "fluent interface" methods to
UnmodList. |
interface |
ImList<E>
Immutable copy-on-write list
|
interface |
ImSortedMap<K,V>
An immutable sorted map.
|
interface |
ImSortedSet<E>
An immutable sorted set interface
|
interface |
MutableList<E>
|
interface |
UnmodList<E>
Formalizes the return type of
Collections.unmodifiableList(List), deprecating
mutator methods and implementing them to throw exceptions. |
interface |
UnmodSortedCollection<E> |
interface |
UnmodSortedMap<K,V>
An unmodifiable SortedMap.
|
interface |
UnmodSortedSet<E>
An unmodifiable SortedSet.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PersistentTreeMap<K,V>
Persistent Red Black Tree.
|
class |
PersistentTreeSet<E>
A wrapper that turns a PersistentTreeMap into a set.
|
class |
PersistentVector<E>
This started out as Rich Hickey's PersistentVector class from Clojure in late 2014.
|
static class |
PersistentVector.MutableVector<F> |
class |
RangeOfInt
An efficient (in both time and memory) implementation of List.
|
class |
RrbTree<E>
An RRB Tree is an immutable List (like Clojure's PersistentVector) that also supports random inserts, deletes,
and can be split and joined back together in logarithmic time.
|
static class |
RrbTree.ImRrbt<E>
Immutable version of an
RrbTree. |
static class |
RrbTree.MutableRrbt<E>
Mutable version of an
RrbTree. |
static class |
UnmodList.AbstractUnmodList<E>
Implements equals and hashCode() methods compatible with java.util.List (which ignores order)
to make defining unmod lists easier.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> UnmodSortedIterable<E> |
UnmodSortedIterable.castFromList(List<E> s) |
static <K,V> UnmodSortedIterable<UnmodMap.UnEntry<K,V>> |
UnmodSortedIterable.castFromSortedMap(SortedMap<K,V> sm) |
static <E> UnmodSortedIterable<E> |
UnmodSortedIterable.castFromSortedSet(SortedSet<E> s) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
UnmodSortedIterable.equal(UnmodSortedIterable a,
UnmodSortedIterable b)
This is correct, but O(n).
|
static boolean |
UnmodSortedIterable.equal(UnmodSortedIterable a,
UnmodSortedIterable b)
This is correct, but O(n).
|
Copyright © 2019. All rights reserved.