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(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 interface
BaseList<E>
Adds copy-on-write, "fluent interface" methods toUnmodList
.interface
BaseMap<K,V>
Adds copy-on-write, "fluent interface" methods toUnmodMap
.interface
BaseSet<E>
Adds copy-on-write, "fluent interface" methods toUnmodSet
.interface
BaseUnsortedMap<K,V>
AddsBaseUnsortedMap.equator()
toBaseMap
which is an unsorted-only operation.interface
ImList<E>
Immutable copy-on-write listinterface
ImMap<K,V>
An immutable map with no guarantees about its ordering.interface
ImSet<E>
An immutable set with no guarantees about its orderinginterface
ImSortedMap<K,V>
An immutable sorted map.interface
ImSortedSet<E>
An immutable sorted set interfaceinterface
MutList<E>
interface
MutMap<K,V>
Interface for mutable (hash) map builder.interface
MutSet<E>
Interface for mutable (hash) set builder.interface
UnmodCollection<E>
Don't implement this interface directly if you don't have to.interface
UnmodList<E>
Formalizes the return type ofCollections.unmodifiableList(List)
, deprecating mutator methods and implementing them to throw exceptions.interface
UnmodMap<K,V>
An unmodifiable map.interface
UnmodSet<E>
An unmodifiable setinterface
UnmodSortedCollection<E>
interface
UnmodSortedIterable<T>
An unmodifiable Iterable, with guaranteed order.interface
UnmodSortedMap<K,V>
An unmodifiable SortedMap.interface
UnmodSortedSet<E>
An unmodifiable SortedSet.Classes in org.organicdesign.fp.collections that implement UnmodIterable Modifier and Type Class Description class
AbstractUnmodIterable<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.class
AbstractUnmodMap<K,V>
Implements equals() and hashCode() methods compatible with java.util.Map (which ignores order) to make defining unmod Maps easier.class
AbstractUnmodSet<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.class
PersistentHashMap<K,V>
Rich Hickey's immutable rendition of Phil Bagwell's Hash Array Mapped Trie.static class
PersistentHashMap.MutHashMap<K,V>
class
PersistentHashSet<E>
A wrapper that turns a PersistentTreeMap into a set.static class
PersistentHashSet.MutHashSet<E>
class
PersistentTreeMap<K,V>
Persistent Red Black Tree.class
PersistentTreeSet<E>
A wrapper that turns a PersistentTreeMap into a set.class
PersistentVector<E>
This started out as Rich Hickey's PersistentVector class from Clojure in late 2014.static class
PersistentVector.MutVector<F>
class
RangeOfInt
An efficient (in both time and memory) implementation of List.class
RrbTree<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 class
RrbTree.ImRrbt<E>
Immutable version of anRrbTree
.static class
RrbTree.MutRrbt<E>
Mutable version of anRrbTree
.static class
UnmodIterable.UnIterable
static class
UnmodList.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<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 class
Xform<A>
An immutable description of operations to be performed (a transformation, transform, or x-form).
-