T - The type of the operand and result of the operator.@FunctionalInterface public interface UnaryIOOperator<T> extends IOFunction<T,T>
IOException throwing equivalent of UnaryOperator.| Modifier and Type | Method and Description |
|---|---|
static <T> UnaryIOOperator<T> |
checked(UnaryOperator<T> operator)
Returns a unary operator that applies the
operator operator to its input, and unwraps any UncheckedIOException that is thrown
by throwing its cause. |
static <T> UnaryIOOperator<T> |
identity()
Returns a unary operator that always returns its input argument.
|
static <T> UnaryOperator<T> |
unchecked(UnaryIOOperator<T> operator)
Returns a unary operator that applies the
operator operator to its input, and wraps any IOException that is thrown in an
UncheckedIOException. |
static <T> UnaryIOOperator<T> identity()
identity in interface IOFunction<T,T>T - The type of the input and output of the operator.static <T> UnaryOperator<T> unchecked(UnaryIOOperator<T> operator)
operator operator to its input, and wraps any IOException that is thrown in an
UncheckedIOException.T - The type of the input and output of the operator.operator - The unary operator to apply when the returned unary operator is applied.operator operator to its input, and wraps any IOException that is thrown in an
UncheckedIOException.NullPointerException - If operator is null.static <T> UnaryIOOperator<T> checked(UnaryOperator<T> operator)
operator operator to its input, and unwraps any UncheckedIOException that is thrown
by throwing its cause.T - The type of the input and output of the operator.operator - The unary operator to apply when the returned unary operator is applied.operator operator to its input, and unwraps any UncheckedIOException that is thrown.NullPointerException - If operator is null.Copyright © 2017–2020. All rights reserved.