@FunctionalInterface public interface IntUnaryOperator
int
operand yielding an int
result.
This is the primitive type specialization of UnaryOperator
for
int
.UnaryOperator
Modifier and Type | Method and Description |
---|---|
default IntUnaryOperator |
andThen(IntUnaryOperator after)
Compose a new function which applies this function followed by the
provided function.
|
int |
applyAsInt(int operand)
Returns the
int value result of the operation upon the
int operand. |
default IntUnaryOperator |
compose(IntUnaryOperator before)
Compose a new function which applies the provided function followed by
this function.
|
static IntUnaryOperator |
identity()
Returns a unary operator that provides its input value as the result.
|
int applyAsInt(int operand)
int
value result of the operation upon the
int
operand.operand
- the operand valuedefault IntUnaryOperator compose(IntUnaryOperator before)
before
- an additional function to be applied before this function
is appliedNullPointerException
- if before is nulldefault IntUnaryOperator andThen(IntUnaryOperator after)
after
- an additional function to be applied after this function is
appliedNullPointerException
- if after is nullstatic IntUnaryOperator 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