Uses of Interface
org.organicdesign.fp.xform.Transformable
-
Packages that use Transformable Package Description 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 Transformable in org.organicdesign.fp.collections
Subinterfaces of Transformable 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.interfaceUnmodIterable<T>An unmodifiable Iterable, without any guarantee about order.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 Transformable 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. -
Uses of Transformable in org.organicdesign.fp.xform
Classes in org.organicdesign.fp.xform that implement Transformable Modifier and Type Class Description classXform<A>An immutable description of operations to be performed (a transformation, transform, or x-form).Methods in org.organicdesign.fp.xform that return Transformable Modifier and Type Method Description Transformable<T>Transformable. concat(java.lang.Iterable<? extends T> list)Add items to the end of this Transformable (precat() adds to the beginning)Transformable<T>Transformable. drop(long numItems)Ignore the first n items and return only those that come after.Transformable<T>Transformable. dropWhile(Fn1<? super T,java.lang.Boolean> predicate)Ignore leading items until the given predicate returns false.Transformable<T>Transformable. filter(Fn1<? super T,java.lang.Boolean> predicate)Return only the items for which the given predicate returns true.<U> Transformable<U>Transformable. flatMap(Fn1<? super T,java.lang.Iterable<U>> f)Transform each item into zero or more new items using the given function.<U> Transformable<U>Transformable. map(Fn1<? super T,? extends U> func)Transform each item into exactly one new item using the given function.Transformable<T>Transformable. precat(java.lang.Iterable<? extends T> list)Add items to the beginning of this Transformable ("precat" is a PREpending version of conCAT).Transformable<T>Transformable. take(long numItems)Return only the first n items.Transformable<T>Transformable. takeWhile(Fn1<? super T,java.lang.Boolean> predicate)Return items from the beginning until the given predicate returns false.
-