@FunctionalInterface public interface LongUnaryOperator
long
-valued操作产生的一个
long
-valued结果操作。这是
long
的
UnaryOperator
原始类型的专业化。
这是一个functional interface其功能的方法是applyAsLong(long)
。
UnaryOperator
Modifier and Type | Method and Description |
---|---|
default LongUnaryOperator |
andThen(LongUnaryOperator after)
返回一个由运营商首先应用该操作员输入,然后将
after 运算符的结果。
|
long |
applyAsLong(long operand)
将此运算符应用于给定的操作数。
|
default LongUnaryOperator |
compose(LongUnaryOperator before)
返回一个由运营商,首先
before 操作员输入,然后将该操作的结果。
|
static LongUnaryOperator |
identity()
返回一元运算符总是返回它的输入参数。
|
long applyAsLong(long operand)
operand
-操作
default LongUnaryOperator compose(LongUnaryOperator before)
before
操作员输入,然后将该操作的结果。如果对两个操作符的评价抛出一个异常,则将它传递给所合成的操作符的调用方。
before
-操作前应用该算子应用
before
算子并将此算子
NullPointerException
如果之前是空的
andThen(LongUnaryOperator)
default LongUnaryOperator andThen(LongUnaryOperator after)
after
运算符的结果。如果对两个操作符的评价抛出一个异常,则将它传递给所合成的操作符的调用方。
after
-运营商申请后应用此算子
after
算子
NullPointerException
如果是空的
compose(LongUnaryOperator)
static 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, 2014, Oracle and/or its affiliates. All rights reserved.