| 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 |
MutableUnsortedSet<E>
Declare your set as MutableUnsortedSet, call mutable(), build it, then call
mySet = mySet.immutable() without having to declare a new variable.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PersistentHashSet<E>
A wrapper that turns a PersistentTreeMap into a set.
|
static class |
PersistentHashSet.MutableHashSet<E> |
| Modifier and Type | Method and Description |
|---|---|
ImUnsortedSet<E> |
ImUnsortedSet.immutable()
Returns a immutable version of this (maybe mutable) set.
|
ImUnsortedSet<E> |
PersistentHashSet.immutable()
Returns a this set.
|
ImUnsortedSet<E> |
ImUnsortedSet.put(E val)
Adds an element, returning a modified version of the set (leaving the original set unchanged).
|
default ImUnsortedSet<E> |
ImUnsortedSet.union(Iterable<? extends E> iter) |
ImUnsortedSet<E> |
ImUnsortedSet.without(E key)
Removes the given item, returning a modified version of the set (leaving the original set
unchanged).
|
Copyright © 2017. All rights reserved.