@FunctionalInterface
public interface IntUnaryOperator
extends java.util.function.IntUnaryOperator
| Modifier and Type | Method and Description |
|---|---|
default IntUnaryOperator |
andThen(IntUnaryOperator after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
int |
applyAsInt(int k)
Type Specific get function to reduce boxing/unboxing
|
default IntUnaryOperator |
compose(IntUnaryOperator before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
static IntUnaryOperator |
identity()
Creates a Default function that returns the input provided.
|
int applyAsInt(int k)
applyAsInt in interface java.util.function.IntUnaryOperatork - the value that should be processedstatic IntUnaryOperator identity()
identity in interface java.util.function.IntUnaryOperatordefault IntUnaryOperator compose(IntUnaryOperator before)
before
function to its input, and then applies this function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.before - the function that should be used firstdefault IntUnaryOperator andThen(IntUnaryOperator after)
after function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.after - the function that should be used last