Package com.github.tonivade.purefun.core
Interface Consumer1<A>
- Type Parameters:
A- the type of parameter received by the function
- All Superinterfaces:
Recoverable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface represents a function that receives a single parameter but it doesn't generate any result.
It's like a Function1<A, Unit>
-
Method Summary
Methods inherited from interface com.github.tonivade.purefun.core.Recoverable
sneakyThrow
-
Method Details
-
accept
-
run
- Throws:
Throwable
-
asFunction
-
andThen
-
peek
-
of
-
noop
-