Interface CheckedUnaryOperator<T,E extends Exception>
- Type Parameters:
T
- input and output-type of operatorE
- type of exception that may be thrown if something goes wrong
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Like a
UnaryOperator
but allows an exception to be thrown.- Author:
- Owen Feehan
-
Method Summary
-
Method Details
-
apply
Applies the operation.- Parameters:
in
- the argument passed in to the operation.- Returns:
- the result of the operation, passed out.
- Throws:
E
- if the operation cannot succeed.
-