| Package | Description |
|---|---|
| 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.
|
| 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.
|
PersistentTreeSet<E> |
PersistentTreeSet.without(E key)
Removes this key from the set
|
Copyright © 2019. All rights reserved.