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 java.lang.Comparable<K>,V>
ImSortedMap<K,V>StaticImports. sortedMap(java.lang.Iterable<java.util.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>
ImSortedMap<K,V>StaticImports. sortedMap(java.util.Comparator<? super K> comp, java.lang.Iterable<java.util.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 ImSortedMap<K,V>ImSortedMap. assoc(java.util.Map.Entry<K,V> entry)Returns a new map with an immutable copy of the given entry addedImSortedMap<K,V>ImSortedMap. assoc(K key, V val)Returns a new map with the given key/value added.default ImSortedMap<K,V>ImSortedMap. headMap(K toKey)Return the elements in this map up (but excluding) to the given elementImSortedMap<K,V>ImSortedMap. subMap(K fromKey, K toKey)Return the elements in this map from the start element (inclusive) to the end element (exclusive)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)ImSortedMap<K,V>ImSortedMap. tailMap(K fromKey)Return the elements in this from the given element to the endImSortedMap<K,V>PersistentTreeMap. tailMap(K fromKey)Return the elements in this from the given element to the endImSortedMap<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>
ImSortedMap<K,V>Transformable. toImSortedMap(java.util.Comparator<? super K> comp, Fn1<? super T,java.util.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.
-