| 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____).
|
| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionUtils.UnmodifiableCollection<T>
Wraps a collection.
|
static class |
FunctionUtils.UnmodifiableList<T>
Wraps a list.
|
static class |
FunctionUtils.UnmodifiableSet<T>
Wraps a set.
|
static class |
FunctionUtils.UnmodifiableSortedSet<T>
Wraps a sorted set.
|
| Modifier and Type | Field and Description |
|---|---|
static UnmodCollection<Object> |
FunctionUtils.EMPTY_UNMOD_COLLECTION
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> UnmodCollection<T> |
FunctionUtils.emptyUnmodCollection()
Returns an empty unmodifiable Collection.
|
static <T> UnmodCollection<T> |
FunctionUtils.unmodCollection(Collection<T> coll)
Returns an unmodifiable version of the given collection.
|
UnmodCollection<V> |
FunctionUtils.UnmodifiableMap.values()
Deprecated.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ImList<E>
Holds Immutable "modification" methods that return a new ImList reflecting the modification while
sharing as much data structure with the previous ImList as possible (for performance).
|
interface |
ImSet<E>
An immutable set interface
|
interface |
ImSortedSet<E>
An immutable sorted set interface
|
interface |
ImUnsortedSet<E>
The super-interface of PersistentHashSet (excludes TreeSet).
|
interface |
MutableList<E>
You could think of this as a builder for an immutable map.
|
interface |
MutableUnsortedSet<E>
Declare your set as MutableUnsortedSet, call mutable(), build it, then call
mySet = mySet.immutable() without having to declare a new variable.
|
interface |
UnmodList<E>
An unmodifiable version of
List which formalizes the return type of
Collections.unmodifiableList() |
interface |
UnmodSet<E>
An unmodifiable set
|
interface |
UnmodSortedCollection<E> |
interface |
UnmodSortedSet<E>
An unmodifiable SortedSet.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PersistentHashSet<E>
A wrapper that turns a PersistentTreeMap into a set.
|
static class |
PersistentHashSet.MutableHashSet<E> |
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.
|
static class |
UnmodList.AbstractUnmodList<E>
Implements equals and hashCode() methods compatible with java.util.Set (which ignores order)
to make defining unmod sets easier, especially for implementing Map.keySet() and such.
|
static class |
UnmodSet.AbstractUnmodSet<T>
Implements equals and hashCode() methods compatible with java.util.Set (which ignores order)
to make defining unmod sets easier, especially for implementing Map.keySet() and such.
|
| Modifier and Type | Method and Description |
|---|---|
default UnmodCollection<V> |
UnmodMap.values()
Deprecated.
|
Copyright © 2017. All rights reserved.