Module io.smallrye.common.function
Package io.smallrye.common.function
Interface ExceptionUnaryOperator<T,E extends Exception>
- Type Parameters:
T- the argument typeE- the exception type
- All Superinterfaces:
ExceptionFunction<T,T, E>
- 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 ExceptionUnaryOperator<T,E extends Exception>
extends ExceptionFunction<T,T,E>
A unary operator which can throw an exception.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExceptionUnaryOperator<T, E> andThen(ExceptionUnaryOperator<T, ? extends E> after) Returns a unary operator that passes the result of this operator through the given operator.default ExceptionUnaryOperator<T, E> compose(ExceptionUnaryOperator<T, ? extends E> before) Returns a unary operator which passes the result of the given operator through this operator.static <T,E extends Exception>
ExceptionUnaryOperator<T, E> identity()Returns the identity operator, which returns its argument.static <T,E extends Exception>
ExceptionUnaryOperator<T, E> of(ExceptionFunction<T, T, E> func) Returns a unary operator which is implemented by the given function.
-
Method Details
-
andThen
Returns a unary operator that passes the result of this operator through the given operator.- Parameters:
after- the next operator (must not benull)- Returns:
- a unary operator that passes the result of this operator through the given operator
-
compose
Returns a unary operator which passes the result of the given operator through this operator.- Parameters:
before- the first operator (must not benull)- Returns:
- a unary operator which passes the result of the given operator through this operator
-
of
Returns a unary operator which is implemented by the given function.- Type Parameters:
T- the argument typeE- the exception type- Parameters:
func- the function (must not benull)- Returns:
- a unary operator which is implemented by the given function
-
identity
Returns the identity operator, which returns its argument.- Type Parameters:
T- the argument typeE- the exception type- Returns:
- the identity operator, which returns its argument
-