Package com.github.tonivade.purefun.core
Interface Function1<A,R>
- Type Parameters:
A- type of function parameterR- type of return value
- All Superinterfaces:
Function1Of<A,,R> Kind<Function1<A,,?>, R> Recoverable
- All Known Subinterfaces:
Operator1<T>
- All Known Implementing Classes:
MemoizedFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public non-sealed interface Function1<A,R>
extends Function1Of<A,R>, Recoverable
-
Method Summary
Modifier and TypeMethodDescriptiondefault Rstatic <A,T> Function1 <A, T> static <A,T> Function1 <A, T> cons(T cons) default <B,Z> Function1 <B, Z> static <A> Function1<A, A> identity()liftId()liftLeft()liftTry()memoized()static <A,R> Function1 <A, R> default PartialFunction1<A, R> sequence()stream()Methods inherited from interface com.github.tonivade.purefun.core.Recoverable
sneakyThrow
-
Method Details
-
apply
-
run
- Throws:
Throwable
-
andThen
-
compose
-
dimap
-
flatMap
-
liftOptional
-
liftOption
-
liftTry
-
liftId
-
liftFuture
-
liftEither
-
liftRight
-
liftLeft
-
sequence
-
stream
-
memoized
-
partial
-
identity
-
cons
-
cons
-
fail
-
of
-