Uses of Interface
org.organicdesign.fp.oneOf.Option
-
Packages that use Option 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.oneOf This package contains Option which has Some() and None() which is useful for indicating "Not-Found" or "End-of-stream/file".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 Option in org.organicdesign.fp.collections
Methods in org.organicdesign.fp.collections that return Option Modifier and Type Method Description @NotNull Option<UnmodMap.UnEntry<K,V>>BaseMap. entry(K key)Returns an option of the key/value pair associated with this key@NotNull Option<UnmodMap.UnEntry<K,V>>ImSortedMap. entry(K key)@NotNull Option<UnmodMap.UnEntry<K,V>>PersistentHashMap. entry(K key)@NotNull Option<UnmodMap.UnEntry<K,V>>PersistentHashMap.MutHashMap. entry(K key)@NotNull Option<UnmodMap.UnEntry<K,V>>PersistentTreeMap. entry(K key)Returns an Option of the key/value pair matching the given key, or Option.none() if the key is not found.default @NotNull Option<E>BaseList. head()The first item in this iterable.@NotNull Option<UnmodMap.UnEntry<K,V>>PersistentTreeMap. head()The first item in this iterable.@NotNull Option<E>PersistentTreeSet. head()The first item in this iterable.default @NotNull Option<T>UnmodIterable. head()The first item in this iterable.Method parameters in org.organicdesign.fp.collections with type arguments of type Option Modifier and Type Method Description default @NotNull BaseList<E>BaseList. appendSome(@NotNull Fn0<? extends @NotNull Option<E>> supplier)If supplier returns Some, return a new BaseList with the additional item at the end.default @NotNull ImList<E>ImList. appendSome(@NotNull Fn0<? extends @NotNull Option<E>> supplier)If supplier returns Some, return a new BaseList with the additional item at the end.default @NotNull MutList<E>MutList. appendSome(@NotNull Fn0<? extends @NotNull Option<E>> supplier)If supplier returns Some, append the additional item to the end of this MutList (modifying it in place).@NotNull PersistentVector<E>PersistentVector. appendSome(@NotNull Fn0<? extends @NotNull Option<E>> supplier)If supplier returns Some, return a new BaseList with the additional item at the end.@NotNull MutList<F>PersistentVector.MutVector. appendSome(@NotNull Fn0<? extends @NotNull Option<F>> supplier)If supplier returns Some, append the additional item to the end of this MutList (modifying it in place).abstract @NotNull RrbTree<E>RrbTree. appendSome(@NotNull Fn0<? extends @NotNull Option<E>> supplier)If supplier returns Some, return a new BaseList with the additional item at the end.@NotNull RrbTree.ImRrbt<E>RrbTree.ImRrbt. appendSome(@NotNull Fn0<? extends @NotNull Option<E>> supplier)If supplier returns Some, return a new BaseList with the additional item at the end.@NotNull RrbTree.MutRrbt<E>RrbTree.MutRrbt. appendSome(@NotNull Fn0<? extends @NotNull Option<E>> supplier)If supplier returns Some, return a new BaseList with the additional item at the end. -
Uses of Option in org.organicdesign.fp.oneOf
Classes in org.organicdesign.fp.oneOf that implement Option Modifier and Type Class Description classNone<T>Represents the absence of a valuestatic classOption.Some<T>Represents the presence of a value, even if that value is null.Methods in org.organicdesign.fp.oneOf that return Option Modifier and Type Method Description static <T> @NotNull Option<T>Option. none()Call this instead of referring toNone.NONEdirectly to make the generic types work out.static <T> @NotNull Option<T>Option. some(T t)Public static factory method for constructing the Some Option.static <T> @NotNull Option<T>Option. someOrNullNoneOf(T t)Construct an option, but if t is null, make it None instead of Some.<U> Option<U>None. then(Fn1<T,Option<U>> f)If this is Some, Apply the given function, else return None.<U> Option<U>Option.Some. then(@NotNull Fn1<T,Option<U>> f)If this is Some, Apply the given function, else return None.<U> Option<U>Option. then(Fn1<T,Option<U>> f)If this is Some, Apply the given function, else return None.Method parameters in org.organicdesign.fp.oneOf with type arguments of type Option Modifier and Type Method Description <U> Option<U>None. then(Fn1<T,Option<U>> f)If this is Some, Apply the given function, else return None.<U> Option<U>Option.Some. then(@NotNull Fn1<T,Option<U>> f)If this is Some, Apply the given function, else return None.<U> Option<U>Option. then(Fn1<T,Option<U>> f)If this is Some, Apply the given function, else return None. -
Uses of Option in org.organicdesign.fp.xform
Methods in org.organicdesign.fp.xform that return Option Modifier and Type Method Description default @NotNull Option<T>Transformable. head()Returns the first item produced by this transform.
-