Package | Description |
---|---|
org.organicdesign.fp |
A tiny data definition language for Java, in Java.
|
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.
|
org.organicdesign.fp.xform |
Immutable descriptions of data transformations (Transformable), and a highly efficient
single-pass, short-circuiting implementation that carries out those transforms in a single pass
(Xform).
|
Modifier and Type | Method and Description |
---|---|
static <K,V> MutableMap<K,V> |
StaticImports.mutableMap(Map.Entry<K,V>... kvPairs)
Returns a new MutableMap of the given keys and their paired values.
|
Modifier and Type | Class and Description |
---|---|
static class |
PersistentHashMap.MutableHashMap<K,V> |
Modifier and Type | Method and Description |
---|---|
MutableMap<K,V> |
MutableMap.assoc(K key,
V val)
Returns a new map with the given key/value added
|
default MutableMap<K,V> |
MutableMap.assoc(Map.Entry<K,V> entry)
Returns a new map with an immutable copy of the given entry added
|
MutableMap<K,V> |
ImMap.mutable()
Returns a mutable version of this mutable map.
|
MutableMap<K,V> |
MutableMap.without(K key)
Returns a new map with the given key/value removed
|
Modifier and Type | Method and Description |
---|---|
default <K,V> MutableMap<K,V> |
Transformable.toMutableMap(Fn1<? super T,Map.Entry<K,V>> f1)
Realize a mutable hash map.
|
Copyright © 2018. All rights reserved.