Uses of Interface
org.organicdesign.fp.collections.ImSortedSet
-
Packages that use ImSortedSet 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). -
-
Uses of ImSortedSet in org.organicdesign.fp
Methods in org.organicdesign.fp that return ImSortedSet Modifier and Type Method Description static <T extends Comparable<T>>
@NotNull ImSortedSet<T>StaticImports. sortedSet(Iterable<T> items)
Returns a new PersistentTreeSet of the given comparable items.static <T> @NotNull ImSortedSet<T>
StaticImports. sortedSet(Comparator<? super T> comp, Iterable<T> elements)
Returns a new PersistentTreeSet of the given comparator and items. -
Uses of ImSortedSet in org.organicdesign.fp.collections
Classes in org.organicdesign.fp.collections that implement ImSortedSet Modifier and Type Class Description class
PersistentTreeSet<E>
A wrapper that turns a PersistentTreeMap into a set.Methods in org.organicdesign.fp.collections that return ImSortedSet Modifier and Type Method Description @NotNull ImSortedSet<Map.Entry<K,V>>
ImSortedMap. entrySet()
Returns a view of the mappings contained in this map.@NotNull ImSortedSet<Map.Entry<K,V>>
PersistentTreeMap. entrySet()
Returns a view of the mappings contained in this map.default @NotNull ImSortedSet<E>
ImSortedSet. headSet(E toElement)
default @NotNull ImSortedSet<K>
ImSortedMap. keySet()
Returns a view of the keys contained in this map.@NotNull ImSortedSet<E>
ImSortedSet. put(E e)
Adds an element.@NotNull ImSortedSet<E>
ImSortedSet. subSet(E fromElement, E toElement)
Return the elements in this set from the start element (inclusive) to the end element (exclusive)@NotNull ImSortedSet<E>
PersistentTreeSet. subSet(E fromElement, E toElement)
Return the elements in this set from the start element (inclusive) to the end element (exclusive)@NotNull ImSortedSet<E>
ImSortedSet. tailSet(E fromElement)
@NotNull ImSortedSet<E>
PersistentTreeSet. tailSet(E fromElement)
default @NotNull ImSortedSet<E>
ImSortedSet. union(Iterable<? extends E> iter)
@NotNull ImSortedSet<E>
ImSortedSet. without(E key)
Removes this key from the set -
Uses of ImSortedSet in org.organicdesign.fp.xform
Methods in org.organicdesign.fp.xform that return ImSortedSet Modifier and Type Method Description default @NotNull ImSortedSet<T>
Transformable. toImSortedSet(Comparator<? super T> comparator)
Realize an immutable, sorted (tree) set to quickly O(log2 n) test it contains items, but still retrieve entries in order.
-