Uses of Interface
org.organicdesign.fp.function.Fn0
-
Packages that use Fn0 Package Description 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.function
Classes in org.organicdesign.fp.function that implement Fn0 Modifier and Type Class Description classLazyRef<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> LazyRef<T>LazyRef. of(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> UNone. 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> ROneOf2OrNone. 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> UOption. 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> UOption.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.
-