@FunctionalInterface
public interface LongUnaryOperator
extends java.util.function.LongUnaryOperator
| Modifier and Type | Method and Description |
|---|---|
default LongUnaryOperator |
andThen(LongUnaryOperator after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
long |
applyAsLong(long k)
Type Specific get function to reduce boxing/unboxing
|
default LongUnaryOperator |
compose(LongUnaryOperator before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
static LongUnaryOperator |
identity()
Creates a Default function that returns the input provided.
|
long applyAsLong(long k)
applyAsLong in interface java.util.function.LongUnaryOperatork - the value that should be processedstatic LongUnaryOperator identity()
identity in interface java.util.function.LongUnaryOperatordefault LongUnaryOperator compose(LongUnaryOperator 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 LongUnaryOperator andThen(LongUnaryOperator 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