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> @NotNull UnmodIterable<T>StaticImports. xform(@Nullable 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> @NotNull 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 @NotNull UnmodIterable<Character>StaticImports. xformChars(@Nullable 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 interfaceinterfaceMutList<E>interfaceMutMap<K,V>Interface for mutable (hash) map builder.interfaceMutSet<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.MutHashMap<K,V>classPersistentHashSet<E>A wrapper that turns a PersistentTreeMap into a set.static classPersistentHashSet.MutHashSet<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.MutVector<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.MutRrbt<E>Mutable version of anRrbTree.static classUnmodIterable.UnIterablestatic 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 @NotNull UnmodIterable<T>UnmodIterable. concat(@Nullable Iterable<? extends T> list)Add items to the end of this Transformable (precat() adds to the beginning)default @NotNull UnmodIterable<T>UnmodIterable. drop(long n)Ignore the first n items and return only those that come after.default @NotNull UnmodIterable<T>UnmodIterable. dropWhile(@NotNull Fn1<? super T,Boolean> predicate)Ignore leading items until the given predicate returns false.static <T> @NotNull UnmodIterable<T>UnmodIterable. emptyUnmodIterable()We only ever need one empty iterable in memory.default @NotNull UnmodIterable<T>UnmodIterable. filter(@NotNull Fn1<? super T,Boolean> f)Return only the items for which the given predicate returns true.default <B> @NotNull UnmodIterable<B>UnmodIterable. flatMap(@NotNull Fn1<? super T,Iterable<B>> f)Transform each item into zero or more new items using the given function.default <B> @NotNull UnmodIterable<B>UnmodIterable. map(@NotNull Fn1<? super T,? extends B> f)Transform each item into exactly one new item using the given function.default @NotNull UnmodIterable<T>UnmodIterable. precat(@Nullable Iterable<? extends T> list)Add items to the beginning of this Transformable ("precat" is a PREpending version of conCAT).default @NotNull UnmodIterable<T>UnmodIterable. take(long numItems)Return only the first n items.default @NotNull UnmodIterable<T>UnmodIterable. takeWhile(@NotNull Fn1<? super T,Boolean> f)Return items from the beginning until the given predicate returns false.default @NotNull UnmodIterable<@NotNull T>UnmodIterable. whereNonNull()Return only the items which are non-null -
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).
-