| 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 | Field and Description |
|---|---|
static PersistentTreeSet |
PersistentTreeSet.EMPTY
Be extremely careful with this because it uses the default comparator, which only works for
items that implement Comparable (have a "natural ordering").
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
PersistentTreeSet.empty()
Be extremely careful with this because it uses the default comparator, which only works for
items that implement Comparable (have a "natural ordering").
|
static <T extends Comparable<T>> |
PersistentTreeSet.of(Iterable<T> items)
Returns a new PersistentTreeSet of the given comparable items.
|
static <T> PersistentTreeSet<T> |
PersistentTreeSet.ofComp(Comparator<? super T> comp)
Returns a new PersistentTreeSet of the given comparator.
|
static <T> PersistentTreeSet<T> |
PersistentTreeSet.ofComp(Comparator<? super T> comp,
Iterable<T> elements)
Returns a new PersistentTreeSet of the given comparator and items.
|
static <T> PersistentTreeSet<T> |
PersistentTreeSet.ofMap(ImSortedMap<T,?> i)
Returns a new PersistentTreeSet of the keys and comparator in the given map.
|
PersistentTreeSet<E> |
PersistentTreeSet.put(E e)
Adds an element, returning a modified version of the set (leaving the original set unchanged).
|
PersistentTreeSet<E> |
PersistentTreeSet.without(E key)
Removes the given item, returning a modified version of the set (leaving the original set
unchanged).
|
Copyright © 2017. All rights reserved.