Uses of Interface
com.jnape.palatable.lambda.functions.Fn0
Packages that use Fn0
Package
Description
-
Uses of Fn0 in com.jnape.palatable.lambda.adt
Methods in com.jnape.palatable.lambda.adt with parameters of type Fn0Modifier and TypeMethodDescriptionIf this is a right value, applypred
to it.static <L,
R> Either <L, R> Convert aMaybe
<R> into anEither<L, R>
, supplying the left value fromleftFn
in the case ofMaybe.nothing()
.final A
If the value is present, return it; otherwise, return the value supplied byotherSupplier
.Maybe.orElseThrow
(Fn0<? extends E> throwableSupplier) If the value is present, return it; otherwise, throw theThrowable
supplied bythrowableSupplier
.If this value is absent, return the value supplied bylSupplier
wrapped inEither.left
.Attempt to execute theFn0
, returning its result in a right value.static <L,
R> Either <L, R> Attempt to execute theFn0
, returning its result in a right value.static <A> Try
<A> static <A extends AutoCloseable,
B extends AutoCloseable, C extends AutoCloseable, D>
Try<D> Try.withResources
(Fn0<? extends A> fn0, Fn1<? super A, ? extends B> bFn, Fn1<? super B, ? extends C> cFn, Fn1<? super C, ? extends Try<? extends D>> fn) Convenience overload ofwithResources
that cascades two dependent resource creations via nested calls.static <A extends AutoCloseable,
B extends AutoCloseable, C>
Try<C> Try.withResources
(Fn0<? extends A> fn0, Fn1<? super A, ? extends B> bFn, Fn1<? super B, ? extends Try<? extends C>> fn) Convenience overload ofwithResources
that cascades dependent resource creation via nested calls.static <A extends AutoCloseable,
B>
Try<B> Try.withResources
(Fn0<? extends A> fn0, Fn1<? super A, ? extends Try<? extends B>> fn) Given aFn0
<AutoCloseable
>aSupplier
and anFn1
fn
, applyfn
to the result ofaSupplier
, ensuring that the result has itsclose
method invoked, regardless of the outcome. -
Uses of Fn0 in com.jnape.palatable.lambda.functions
Methods in com.jnape.palatable.lambda.functions that return Fn0Modifier and TypeMethodDescriptiondefault <B> Fn0
<B> default <B> Fn0
<B> Fn0.discardL
(Applicative<B, Fn1<Unit, ?>> appB) Fn0.discardR
(Applicative<B, Fn1<Unit, ?>> appB) default <B> Fn0
<B> default <B> Fn0
<B> static <A> Fn0
<A> Static factory method for coercing a lambda to anFn0
.static <A> Fn0
<A> static <A> Fn0
<A> Fn0.fromCallable
(Callable<A> callable) static <A> Fn0
<A> Fn0.fromSupplier
(Supplier<A> supplier) default <B> Fn0
<B> Fn0.pure
(B b) default <B> Fn0
<B> default <B> Fn0
<B> Methods in com.jnape.palatable.lambda.functions with parameters of type Fn0 -
Uses of Fn0 in com.jnape.palatable.lambda.functions.builtin.fn2
Methods in com.jnape.palatable.lambda.functions.builtin.fn2 with parameters of type Fn0Modifier and TypeMethodDescriptionToCollection.checkedApply
(Fn0<C> cFn0, Iterable<A> as) static <A,
C extends Collection<A>>
Fn1<Iterable<A>, C> ToCollection.toCollection
(Fn0<C> cFn0) static <A,
C extends Collection<A>>
CToCollection.toCollection
(Fn0<C> cFn0, Iterable<A> as) static <K,
V, M extends Map<K, V>>
M -
Uses of Fn0 in com.jnape.palatable.lambda.functions.builtin.fn4
Methods in com.jnape.palatable.lambda.functions.builtin.fn4 with parameters of type Fn0 -
Uses of Fn0 in com.jnape.palatable.lambda.functor.builtin
Fields in com.jnape.palatable.lambda.functor.builtin declared as Fn0Methods in com.jnape.palatable.lambda.functor.builtin with parameters of type Fn0Constructors in com.jnape.palatable.lambda.functor.builtin with parameters of type Fn0 -
Uses of Fn0 in com.jnape.palatable.lambda.internal.iteration
Fields in com.jnape.palatable.lambda.internal.iteration declared as Fn0Fields in com.jnape.palatable.lambda.internal.iteration with type parameters of type Fn0Modifier and TypeFieldDescriptionRateLimitingIterable.rateLimits
RateLimitingIterator.rateLimits
RateLimitingIterator.timeSlicesByRateLimit
Methods in com.jnape.palatable.lambda.internal.iteration with parameters of type Fn0Modifier and TypeMethodDescriptionprivate <R> R
TrampoliningIterator.pruneAfter
(Fn0<? extends R> fn) Method parameters in com.jnape.palatable.lambda.internal.iteration with type arguments of type Fn0Modifier and TypeMethodDescriptionprivate void
private boolean
Constructor parameters in com.jnape.palatable.lambda.internal.iteration with type arguments of type Fn0 -
Uses of Fn0 in com.jnape.palatable.lambda.io
Methods in com.jnape.palatable.lambda.io with parameters of type Fn0Modifier and TypeMethodDescriptionstatic <A> IO
<A> IO.externallyManaged
(Fn0<CompletableFuture<A>> supplier) Static factory method for creating anIO
from an externally managed source ofcompletable futures
.static <A> IO
<A> Static factory method for coercing a lambda to anIO
. -
Uses of Fn0 in com.jnape.palatable.lambda.monad.transformer.builtin
Fields in com.jnape.palatable.lambda.monad.transformer.builtin with type parameters of type Fn0Modifier and TypeFieldDescriptionprivate final ImmutableQueue
<Choice2<Fn0<MonadRec<Maybe<Tuple2<A, IterateT<M, A>>>, M>>, MonadRec<A, M>>> IterateT.spine
Methods in com.jnape.palatable.lambda.monad.transformer.builtin with parameters of type Fn0Modifier and TypeMethodDescription<C extends Collection<A>,
MAS extends MonadRec<C, M>>
MASIterateT.toCollection
(Fn0<C> cFn0) Force the underlying spine of thisIterateT
into aCollection
of typeC
inside the context of the monadic effect, using the providedcFn0
to construct the initial instance.Constructor parameters in com.jnape.palatable.lambda.monad.transformer.builtin with type arguments of type Fn0 -
Uses of Fn0 in com.jnape.palatable.lambda.monoid
Methods in com.jnape.palatable.lambda.monoid with parameters of type Fn0 -
Uses of Fn0 in com.jnape.palatable.lambda.monoid.builtin
Methods in com.jnape.palatable.lambda.monoid.builtin with parameters of type Fn0Modifier and TypeMethodDescriptionstatic <A,
C extends Collection<A>>
Monoid<C> static <A,
C extends Collection<A>>
Fn1<C, C> static <A,
C extends Collection<A>>
CAddAll.checkedApply
(Fn0<C> cFn0) static <K,
V> MonoidFactory <Semigroup<V>, Map<K, V>> static <K,
V> Map <K, V>