@FunctionalInterface public interface LongUnaryOperator
long
operand yielding a long
result.
This is the primitive type specialization of UnaryOperator
for
long
.UnaryOperator
Modifier and Type | Method and Description |
---|---|
default LongUnaryOperator |
andThen(LongUnaryOperator after)
Compose a new function which applies this function followed by the
provided function.
|
long |
applyAsLong(long operand)
Returns the
long result of the operation upon the long
operand. |
default LongUnaryOperator |
compose(LongUnaryOperator before)
Compose a new function which applies the provided function followed by
this function.
|
static LongUnaryOperator |
identity()
Returns a unary operator that provides its input value as the result.
|
long applyAsLong(long operand)
long
result of the operation upon the long
operand.operand
- the operand valuedefault LongUnaryOperator compose(LongUnaryOperator before)
before
- An additional function to be applied before this function
is appliedNullPointerException
- if before is nulldefault LongUnaryOperator andThen(LongUnaryOperator after)
after
- An additional function to be applied after this function is
appliedNullPointerException
- if after is nullstatic LongUnaryOperator identity()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-0