| 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.UnmodifiableSet<T>
Wraps a set.
|
static class |
FunctionUtils.UnmodifiableSortedSet<T>
Wraps a sorted set.
|
| Modifier and Type | Field and Description |
|---|---|
static UnmodSet<Object> |
FunctionUtils.EMPTY_UNMOD_SET
Deprecated.
|
static UnmodSet<Object> |
FunctionUtils.EMPTY_UNMOD_SORTED_SET
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> UnmodSet<T> |
FunctionUtils.emptyUnmodSet()
Returns an empty unmodifiable set.
|
UnmodSet<Map.Entry<K,V>> |
FunctionUtils.UnmodifiableMap.entrySet() |
UnmodSet<K> |
FunctionUtils.UnmodifiableMap.keySet() |
static <T> UnmodSet<T> |
FunctionUtils.unmodSet(Set<T> set)
Returns an unmodifiable version of the given set.
|
| Modifier and Type | Interface and Description |
|---|---|
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 |
MutableUnsortedSet<E>
Declare your set as MutableUnsortedSet, call mutable(), build it, then call
mySet = mySet.immutable() without having to declare a new variable.
|
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.
|
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 UnmodSet<Map.Entry<K,V>> |
UnmodMap.entrySet()
Returns a view of the mappings contained in this map.
|
default UnmodSet<K> |
UnmodMap.keySet()
Returns a view of the keys contained in this map.
|
Copyright © 2017. All rights reserved.