Package org.cactoos
Interface Proc<X>
-
- Type Parameters:
X
- Type of input
- All Known Implementing Classes:
Async
,CheckedProc
,ForEach
,ForEachInThreads
,ForEachWithIndex
,IoCheckedProc
,ProcEnvelope
,ProcNoNulls
,ProcOf
,RepeatedProc
,UncheckedProc
- 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 interface Proc<X>
Procedure.If you don't want to have any checked exceptions being thrown out of your
Proc
, you can useUncheckedProc
decorator. Also you may tryIoCheckedProc
.There is no thread-safety guarantee.
- Since:
- 0.1
- See Also:
FuncOf
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
exec(X input)
Execute it.
-