@FunctionalInterface public interface IntUnaryOperator
int
-valued操作数,产生一个
int
-valued结果操作。这是
int
的
UnaryOperator
原始类型的专业化。
这是一个functional interface其功能的方法是applyAsInt(int)
。
UnaryOperator
Modifier and Type | Method and Description |
---|---|
default IntUnaryOperator |
andThen(IntUnaryOperator after)
返回一个由运营商首先应用该操作员输入,然后将
after 运算符的结果。
|
int |
applyAsInt(int operand)
将此运算符应用于给定的操作数。
|
default IntUnaryOperator |
compose(IntUnaryOperator 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
如果是空的
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.