@FunctionalInterface public interface IntUnaryOperator
int值操作数的操作,产生一个int结果。
这是UnaryOperator为int的原始类型int 。
这是一个functional interface的功能方法是applyAsInt(int) 。
UnaryOperator
| Modifier and Type | Method and Description |
|---|---|
default IntUnaryOperator |
andThen(IntUnaryOperator after)
返回一个
after运算符,首先将该运算符应用于其输入,然后将
after运算符应用于结果。
|
int |
applyAsInt(int operand)
将此运算符应用于给定的操作数。
|
default IntUnaryOperator |
compose(IntUnaryOperator before)
返回一个
before运算符,首先将
before运算符应用于其输入,然后将该运算符应用于结果。
|
static IntUnaryOperator |
identity()
返回始终返回其输入参数的一元运算符。
|
int applyAsInt(int operand)
operand - 操作数
default IntUnaryOperator compose(IntUnaryOperator before)
before运算符应用于其输入,然后将该运算符应用于结果。
如果任一运算符的评估引发异常,则将其中继到组合运算符的调用者。
before - 应用操作员之前应用的操作员
before操作符,然后应用此运算符
NullPointerException - 如果以前是空
andThen(IntUnaryOperator)
default IntUnaryOperator andThen(IntUnaryOperator after)
after运算符应用于结果。
如果任一运算符的评估引发异常,则将其中继到组合运算符的调用者。
after - 应用此操作符后应用的操作员
after运算符
NullPointerException - 如果以后为null
compose(IntUnaryOperator)
static 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, 2014, Oracle and/or its affiliates. All rights reserved.