T
- the type of the operand and result of the operator.@FunctionalInterface public interface IOUnaryOperator<T> extends IOFunction<T,T>
UnaryOperator
but throws IOException
.UnaryOperator
,
IOFunction
Modifier and Type | Method and Description |
---|---|
default java.util.function.UnaryOperator<T> |
asUnaryOperator()
Creates a
UnaryOperator for this instance that throws UncheckedIOException instead of
IOException . |
static <T> IOUnaryOperator<T> |
identity()
Creates a unary operator that always returns its input argument.
|
static <T> IOUnaryOperator<T> identity()
identity
in interface IOFunction<T,T>
T
- the type of the input and output of the operator.default java.util.function.UnaryOperator<T> asUnaryOperator()
UnaryOperator
for this instance that throws UncheckedIOException
instead of
IOException
.Copyright © 2010 - 2023 Adobe. All Rights Reserved