Uses of Interface
org.organicdesign.fp.collections.ImSortedMap
-
Packages that use ImSortedMap 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 ImSortedMap in org.organicdesign.fp
Methods in org.organicdesign.fp that return ImSortedMap Modifier and Type Method Description static <K extends Comparable<K>,V>
@NotNull ImSortedMap<K,V>StaticImports. sortedMap(Iterable<Map.Entry<K,V>> kvPairs)Returns a new PersistentTreeMap of the given comparable keys and their paired values, sorted in the default ordering of the keys.static <K,V>
@NotNull ImSortedMap<K,V>StaticImports. sortedMap(Comparator<? super K> comp, Iterable<Map.Entry<K,V>> kvPairs)Returns a new PersistentTreeMap of the specified comparator and the given key/value pairs. -
Uses of ImSortedMap in org.organicdesign.fp.collections
Classes in org.organicdesign.fp.collections that implement ImSortedMap Modifier and Type Class Description classPersistentTreeMap<K,V>Persistent Red Black Tree.Methods in org.organicdesign.fp.collections that return ImSortedMap Modifier and Type Method Description default @NotNull ImSortedMap<K,V>ImSortedMap. assoc(Map.Entry<K,V> entry)Returns a new map with an immutable copy of the given entry added@NotNull ImSortedMap<K,V>ImSortedMap. assoc(K key, V val)Returns a new map with the given key/value added.default @NotNull ImSortedMap<K,V>ImSortedMap. headMap(K toKey)Return the elements in this map up (but excluding) to the given element@NotNull ImSortedMap<K,V>ImSortedMap. subMap(K fromKey, K toKey)Return the elements in this map from the start element (inclusive) to the end element (exclusive)@NotNull ImSortedMap<K,V>PersistentTreeMap. subMap(K fromKey, K toKey)Return the elements in this map from the start element (inclusive) to the end element (exclusive)@NotNull ImSortedMap<K,V>ImSortedMap. tailMap(K fromKey)Return the elements in this from the given element to the end@NotNull ImSortedMap<K,V>PersistentTreeMap. tailMap(K fromKey)Return the elements in this from the given element to the end@NotNull ImSortedMap<K,V>ImSortedMap. without(K key)Returns a new map with the given key/value removedMethods in org.organicdesign.fp.collections with parameters of type ImSortedMap Modifier and Type Method Description static <T> PersistentTreeSet<T>PersistentTreeSet. ofMap(ImSortedMap<T,?> i)Returns a new PersistentTreeSet of the keys and comparator in the given map. -
Uses of ImSortedMap in org.organicdesign.fp.xform
Methods in org.organicdesign.fp.xform that return ImSortedMap Modifier and Type Method Description default <K,V>
@NotNull ImSortedMap<K,V>Transformable. toImSortedMap(Comparator<? super K> comp, @NotNull Fn1<? super T,Map.Entry<K,V>> f1)Realize an immutable, ordered (tree) map to quickly O(log2 n) look up values by key, but still retrieve entries in key order.
-