Top Description Methods
io.smallrye.common.function

public Interface ExceptionUnaryOperator<T, E extends Exception>

extends ExceptionFunction<T, T, E extends Exception>
Annotations
@FunctionalInterface
Type Parameters
<T>
the argument type
<E>
the exception type
Imports
io.smallrye.common.constraint.Assert

A unary operator which can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public default ExceptionUnaryOperator<T, E>

Returns:

a unary operator that passes the result of this operator through the given operator
andThen
(ExceptionUnaryOperator<T, ? extends E>
the next operator (must not be null)
after
)

Returns a unary operator that passes the result of this operator through the given operator.

public default ExceptionUnaryOperator<T, E>

Returns:

a unary operator which passes the result of the given operator through this operator
compose
(ExceptionUnaryOperator<T, ? extends E>
the first operator (must not be null)
before
)

Returns a unary operator which passes the result of the given operator through this operator.

public static <
the argument type
T
,
the exception type
E extends Exception
>
ExceptionUnaryOperator<T, E>

Returns:

the identity operator, which returns its argument
identity
()

Returns the identity operator, which returns its argument.

public static <
the argument type
T
,
the exception type
E extends Exception
>
ExceptionUnaryOperator<T, E>

Returns:

a unary operator which is implemented by the given function
of
(ExceptionFunction<T, T, E>
the function (must not be null)
func
)

Returns a unary operator which is implemented by the given function.

Inherited from io.smallrye.common.function.ExceptionFunction:
andThenandThenandThenandThenandThenandThenapplycomposecompose

Method Detail

andThenback to summary
public default ExceptionUnaryOperator<T, E> andThen(ExceptionUnaryOperator<T, ? extends E> after)

Returns a unary operator that passes the result of this operator through the given operator.

Parameters
after:ExceptionUnaryOperator<T, ? extends E>

the next operator (must not be null)

Returns:ExceptionUnaryOperator<T, E>

a unary operator that passes the result of this operator through the given operator

composeback to summary
public 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.

Parameters
before:ExceptionUnaryOperator<T, ? extends E>

the first operator (must not be null)

Returns:ExceptionUnaryOperator<T, E>

a unary operator which passes the result of the given operator through this operator

identityback to summary
public static <T, E extends Exception> ExceptionUnaryOperator<T, E> identity()

Returns the identity operator, which returns its argument.

Parameters
<T>
the argument type
<E>
the exception type
Returns:ExceptionUnaryOperator<T, E>

the identity operator, which returns its argument

ofback to summary
public 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.

Parameters
<T>
the argument type
<E>
the exception type
func:ExceptionFunction<T, T, E>

the function (must not be null)

Returns:ExceptionUnaryOperator<T, E>

a unary operator which is implemented by the given function