| 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 |
ComparisonContext<T>
Represents a context for comparison because sometimes you order the same things differently.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
ComparisonContext.CompCtx
Please access this type-safely through
ComparisonContext.defCompCtx() instead of calling directly. |
static class |
Equator.Equat |
static class |
RangeOfInt.Equat |
| Modifier and Type | Method and Description |
|---|---|
static <T> Equator<T> |
Equator.defaultEquator() |
Equator<K> |
PersistentHashMap.equator()
Returns the Equator used by this map for equals comparisons and hashCodes
|
Equator<K> |
PersistentHashMap.MutableHashMap.equator() |
Equator<K> |
BaseUnsortedMap.equator()
Returns the Equator used by this map for equals comparisons and hashCodes
|
Equator<E> |
PersistentHashSet.equator()
Returns the Equator used by this set for equals comparisons and hashCodes
|
| Modifier and Type | Method and Description |
|---|---|
static <E> PersistentHashSet<E> |
PersistentHashSet.empty(Equator<E> eq) |
static <K,V> PersistentHashMap<K,V> |
PersistentHashMap.empty(Equator<K> e) |
static <E> PersistentHashSet.MutableHashSet<E> |
PersistentHashSet.emptyMutable(Equator<E> eq)
Works around some type inference limitations of Java 8.
|
static <K,V> PersistentHashMap.MutableHashMap<K,V> |
PersistentHashMap.emptyMutable(Equator<K> e)
Works around some type inference limitations of Java 8.
|
static <E> PersistentHashSet<E> |
PersistentHashSet.ofEq(Equator<E> eq,
Iterable<E> init) |
static <K,V> PersistentHashMap<K,V> |
PersistentHashMap.ofEq(Equator<K> eq,
Iterable<Map.Entry<K,V>> es)
Returns a new PersistentHashMap of the given keys and their paired values, skipping any null
Entries.
|
Copyright © 2019. All rights reserved.