| 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 |
ImMapTrans<K,V>
Deprecated.
|
interface |
MutableUnsortedMap<K,V>
Interface for mutable (hash) map builder.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PersistentHashMap<K,V>
Rich Hickey's immutable rendition of Phil Bagwell's Hash Array Mapped Trie.
|
static class |
PersistentHashMap.MutableHashMap<K,V> |
| Modifier and Type | Method and Description |
|---|---|
ImUnsortedMap<K,V> |
ImUnsortedMap.assoc(K key,
V val)
Returns a new map with the given key/value added
|
default ImUnsortedMap<K,V> |
ImUnsortedMap.assoc(Map.Entry<K,V> entry)
Returns a new map with an immutable copy of the given entry added
|
ImUnsortedMap<K,V> |
ImMapTrans.immutable()
Deprecated.
Returns a immutable version of this mutable map.
|
ImUnsortedMap<K,V> |
ImUnsortedMap.immutable()
Returns a immutable version of this (maybe) mutable map.
|
ImUnsortedMap<K,V> |
ImUnsortedMap.without(K key)
Returns a new map with the given key/value removed
|
| Modifier and Type | Method and Description |
|---|---|
static <E> PersistentHashSet<E> |
PersistentHashSet.ofMap(ImUnsortedMap<E,?> map) |
Copyright © 2017. All rights reserved.