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. -
Uses of Option in org.organicdesign.fp.oneOf
Classes in org.organicdesign.fp.oneOf that implement Option Modifier and Type Class Description class
None<T>
Represents the absence of a valuestatic class
Option.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> Option<T>
Option. none()
Calling this instead of referring to NONE directly can make the type infrencer happy.static <T> Option<T>
Option. of(T t)
Deprecated.static <T> Option<T>
Option. some(T t)
Public static factory method for constructing the Some Option.static <T> 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(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(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.
-