| Package | Description |
|---|---|
| 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 | Interface and Description |
|---|---|
interface |
ComparisonContext<T>
Implement compare() and hash() and you get a 100% compatible eq() for free.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
ComparisonContext.CompCtx |
static class |
Equator.Equat |
static class |
RangeOfInt.Equat |
| Modifier and Type | Field and Description |
|---|---|
static Equator<List<Integer>> |
RangeOfInt.LIST_EQUATOR
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Equator<T> |
Equator.defaultEquator() |
Equator<K> |
ImMapTrans.equator()
Deprecated.
Returns the Equator used by this map for equals comparisons and hashCodes
|
Equator<K> |
ImUnsortedMap.equator()
Returns the Equator used by this map for equals comparisons and hashCodes
|
Equator<K> |
PersistentHashMap.equator()
Returns the Equator used by this map for equals comparisons and hashCodes
|
Equator<K> |
PersistentHashMap.MutableHashMap.equator() |
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 © 2017. All rights reserved.