public final class IntUnaryOperators
extends java.lang.Object
IntUnaryOperator interface.| Modifier and Type | Method and Description |
|---|---|
static IntUnaryOperator |
andThen(IntUnaryOperator this_,
IntUnaryOperator after)
Returns a composed operator that first applies the
this_ operator to
its input, and then applies the after operator to the result. |
static IntUnaryOperator |
compose(IntUnaryOperator this_,
IntUnaryOperator before)
Returns a composed operator that first applies the
before
operator to its input, and then applies the this_ operator to the result. |
static IntUnaryOperator |
identity()
Returns a unary operator that always returns its input argument.
|
public static IntUnaryOperator compose(IntUnaryOperator this_, IntUnaryOperator before)
before
operator to its input, and then applies the this_ operator to the result.
If evaluation of either operator throws an exception, it is relayed to
the caller of the composed operator.this_ - the operator to apply after the before operator is appliedbefore - the operator to apply before the this_ operator is appliedbefore
operator and then applies the this_ operatorjava.lang.NullPointerException - if this_ is nulljava.lang.NullPointerException - if before is nullandThen(IntUnaryOperator, IntUnaryOperator)public static IntUnaryOperator andThen(IntUnaryOperator this_, IntUnaryOperator after)
this_ operator to
its input, and then applies the after operator to the result.
If evaluation of either operator throws an exception, it is relayed to
the caller of the composed operator.this_ - the operator to apply before the after operator is appliedafter - the operator to apply after the this_ operator is appliedthis_ operator and then
applies the after operatorjava.lang.NullPointerException - if this_ is nulljava.lang.NullPointerException - if after is nullcompose(IntUnaryOperator, IntUnaryOperator)public static IntUnaryOperator identity()