Uses of Interface
org.organicdesign.fp.collections.UnmodIterable
-
Packages that use UnmodIterable 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 UnmodIterable in org.organicdesign.fp
Methods in org.organicdesign.fp that return UnmodIterable Modifier and Type Method Description static <T> UnmodIterable<T>StaticImports. xform(java.lang.Iterable<T> iterable)If you need to wrap a regular Java collection or other iterable outside this project to perform a transformation on it, this method is the most convenient, efficient way to do so.static <T> UnmodIterable<T>StaticImports. xformArray(T... items)If you need to wrap a regular Java array outside this project to perform a transformation on it, this method is the most convenient, efficient way to do so.static UnmodIterable<java.lang.Character>StaticImports. xformChars(java.lang.CharSequence seq)Wrap a String (or CharSequence) to perform a Character-by-Character transformation on it. -
Uses of UnmodIterable in org.organicdesign.fp.collections
Subinterfaces of UnmodIterable in org.organicdesign.fp.collections Modifier and Type Interface Description interfaceBaseList<E>Adds copy-on-write, "fluent interface" methods toUnmodList.interfaceBaseMap<K,V>Adds copy-on-write, "fluent interface" methods toUnmodMap.interfaceBaseSet<E>Adds copy-on-write, "fluent interface" methods toUnmodSet.interfaceBaseUnsortedMap<K,V>AddsBaseUnsortedMap.equator()toBaseMapwhich is an unsorted-only operation.interfaceImList<E>Immutable copy-on-write listinterfaceImMap<K,V>An immutable map with no guarantees about its ordering.interfaceImSet<E>An immutable set with no guarantees about its orderinginterfaceImSortedMap<K,V>An immutable sorted map.interfaceImSortedSet<E>An immutable sorted set interfaceinterfaceMutableList<E>interfaceMutableMap<K,V>Interface for mutable (hash) map builder.interfaceMutableSet<E>Interface for mutable (hash) set builder.interfaceUnmodCollection<E>Don't implement this interface directly if you don't have to.interfaceUnmodList<E>Formalizes the return type ofCollections.unmodifiableList(List), deprecating mutator methods and implementing them to throw exceptions.interfaceUnmodMap<K,V>An unmodifiable map.interfaceUnmodSet<E>An unmodifiable setinterfaceUnmodSortedCollection<E>interfaceUnmodSortedIterable<T>An unmodifiable Iterable, with guaranteed order.interfaceUnmodSortedMap<K,V>An unmodifiable SortedMap.interfaceUnmodSortedSet<E>An unmodifiable SortedSet.Classes in org.organicdesign.fp.collections that implement UnmodIterable Modifier and Type Class Description classAbstractUnmodIterable<T>Implements equals and hashCode() methods compatible with all java.util collections (this algorithm is not order-dependent) and toString which takes the name of the sub-class.classAbstractUnmodMap<K,V>Implements equals() and hashCode() methods compatible with java.util.Map (which ignores order) to make defining unmod Maps easier.classAbstractUnmodSet<T>Implements equals and hashCode() methods compatible with java.util.Set (which ignores order) to make defining unmod sets easier, especially for implementing Map.keySet() and such.classPersistentHashMap<K,V>Rich Hickey's immutable rendition of Phil Bagwell's Hash Array Mapped Trie.static classPersistentHashMap.MutableHashMap<K,V>classPersistentHashSet<E>A wrapper that turns a PersistentTreeMap into a set.static classPersistentHashSet.MutableHashSet<E>classPersistentTreeMap<K,V>Persistent Red Black Tree.classPersistentTreeSet<E>A wrapper that turns a PersistentTreeMap into a set.classPersistentVector<E>This started out as Rich Hickey's PersistentVector class from Clojure in late 2014.static classPersistentVector.MutableVector<F>classRangeOfIntAn efficient (in both time and memory) implementation of List.classRrbTree<E>An RRB Tree is an immutable List (like Clojure's PersistentVector) that also supports random inserts, deletes, and can be split and joined back together in logarithmic time.static classRrbTree.ImRrbt<E>Immutable version of anRrbTree.static classRrbTree.MutableRrbt<E>Mutable version of anRrbTree.static classUnmodList.AbstractUnmodList<E>Implements equals and hashCode() methods compatible with java.util.List (which ignores order) to make defining unmod lists easier.Methods in org.organicdesign.fp.collections that return UnmodIterable Modifier and Type Method Description default UnmodIterable<T>UnmodIterable. concat(java.lang.Iterable<? extends T> list)Add items to the end of this Transformable (precat() adds to the beginning)default UnmodIterable<T>UnmodIterable. drop(long n)Ignore the first n items and return only those that come after.default UnmodIterable<T>UnmodIterable. dropWhile(Fn1<? super T,java.lang.Boolean> predicate)Ignore leading items until the given predicate returns false.default UnmodIterable<T>UnmodIterable. filter(Fn1<? super T,java.lang.Boolean> f)Return only the items for which the given predicate returns true.default <B> UnmodIterable<B>UnmodIterable. flatMap(Fn1<? super T,java.lang.Iterable<B>> f)Transform each item into zero or more new items using the given function.default <B> UnmodIterable<B>UnmodIterable. map(Fn1<? super T,? extends B> f)Transform each item into exactly one new item using the given function.default UnmodIterable<T>UnmodIterable. precat(java.lang.Iterable<? extends T> list)Add items to the beginning of this Transformable ("precat" is a PREpending version of conCAT).default UnmodIterable<T>UnmodIterable. take(long numItems)Return only the first n items.default UnmodIterable<T>UnmodIterable. takeWhile(Fn1<? super T,java.lang.Boolean> f)Return items from the beginning until the given predicate returns false. -
Uses of UnmodIterable in org.organicdesign.fp.xform
Classes in org.organicdesign.fp.xform that implement UnmodIterable Modifier and Type Class Description classXform<A>An immutable description of operations to be performed (a transformation, transform, or x-form).
-