Uses of Interface
org.organicdesign.fp.function.Fn0
-
Packages that use Fn0 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.function Exception-friendly functional interfaces named by the number of arguments: Fn0, Fn1, Fn2....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". -
-
Uses of Fn0 in org.organicdesign.fp.collections
Methods in org.organicdesign.fp.collections with parameters of type Fn0 Modifier and Type Method Description default @NotNull BaseList<E>
BaseList. appendWhen(@NotNull Fn0<Boolean> test, E e)
Adds one item to the end of the ImList.default @NotNull ImList<E>
ImList. appendWhen(@NotNull Fn0<Boolean> test, E e)
Adds one item to the end of the ImList.default @NotNull MutList<E>
MutList. appendWhen(@NotNull Fn0<Boolean> test, E e)
Adds one item to the end of the ImList.@NotNull PersistentVector<E>
PersistentVector. appendWhen(@NotNull Fn0<Boolean> test, E e)
Adds one item to the end of the ImList.@NotNull MutList<F>
PersistentVector.MutVector. appendWhen(@NotNull Fn0<Boolean> test, F e)
Adds one item to the end of the ImList.abstract @NotNull RrbTree<E>
RrbTree. appendWhen(@NotNull Fn0<Boolean> test, E e)
Adds one item to the end of the ImList.@NotNull RrbTree.ImRrbt<E>
RrbTree.ImRrbt. appendWhen(@NotNull Fn0<Boolean> test, E e)
Adds one item to the end of the ImList.@NotNull RrbTree.MutRrbt<E>
RrbTree.MutRrbt. appendWhen(@NotNull Fn0<Boolean> test, E e)
Adds one item to the end of the ImList. -
Uses of Fn0 in org.organicdesign.fp.function
Classes in org.organicdesign.fp.function that implement Fn0 Modifier and Type Class Description class
LazyRef<T>
Lazily initialize a value (and free the initialization resources) on the first call to get().Methods in org.organicdesign.fp.function with parameters of type Fn0 Modifier and Type Method Description static <T> @NotNull LazyRef<T>
LazyRef. of(@NotNull Fn0<T> producer)
Construct a LazyRef from the given initialization function. -
Uses of Fn0 in org.organicdesign.fp.oneOf
Methods in org.organicdesign.fp.oneOf with parameters of type Fn0 Modifier and Type Method Description <U> U
None. match(Fn1<T,U> has, Fn0<U> hasNot)
Pass in a function to execute if its Some and another to execute if its None.<R> R
OneOf2OrNone. match(Fn1<A,R> fa, Fn1<B,R> fb, Fn0<R> fz)
Languages that have union types built in have a match statement that works like this method.<U> U
Option. match(Fn1<T,U> has, Fn0<U> hasNot)
Pass in a function to execute if its Some and another to execute if its None.<U> U
Option.Some. match(Fn1<T,U> has, Fn0<U> hasNot)
Pass in a function to execute if its Some and another to execute if its None.
-