public final class LongUnaryOperators extends Object
LongUnaryOperator
interface.Modifier and Type | Method and Description |
---|---|
static LongUnaryOperator |
andThen(LongUnaryOperator this_,
LongUnaryOperator after)
Returns a composed operator that first applies the
this_ operator to
its input, and then applies the after operator to the result. |
static LongUnaryOperator |
compose(LongUnaryOperator this_,
LongUnaryOperator before)
Returns a composed operator that first applies the
before
operator to its input, and then applies the this_ operator to the result. |
static LongUnaryOperator |
identity()
Returns a unary operator that always returns its input argument.
|
public static LongUnaryOperator compose(LongUnaryOperator this_, LongUnaryOperator 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_
operatorNullPointerException
- if this_
is nullNullPointerException
- if before is nullandThen(LongUnaryOperator, LongUnaryOperator)
public static LongUnaryOperator andThen(LongUnaryOperator this_, LongUnaryOperator 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
operatorNullPointerException
- if this_
is nullNullPointerException
- if after is nullcompose(LongUnaryOperator, LongUnaryOperator)
public static LongUnaryOperator identity()
Copyright © 2016. All rights reserved.