Interface IntUnaryOperator
- Functional Interface:
- 这是一个功能接口,因此可以用作lambda表达式或方法引用的赋值目标。
@FunctionalInterface public interface IntUnaryOperator
表示对单个int值操作数的操作,该操作数产生int值的结果。 这是4481308244590的原始类型专业化int。这是一个functional interface,其功能方法是
applyAsInt(int)。
- 从以下版本开始:
- 1.8
- 另请参见:
UnaryOperator
方法摘要
| 变量和类型 | 方法 | 描述 |
|---|---|---|
default IntUnaryOperator |
andThen(IntUnaryOperator after) |
返回首先将此运算符应用于其输入的
after运算符,然后将 after运算符应用于结果。 |
int |
applyAsInt(int operand) |
将此运算符应用于给定的操作数。
|
default IntUnaryOperator |
compose(IntUnaryOperator before) |
返回一个组合运算符,该运算符首先将
before运算符应用于其输入,然后将此运算符应用于结果。 |
static IntUnaryOperator |
identity() |
返回始终返回其输入参数的一元运算符。
|

浙公网安备 33010602011771号