Interface IntUnaryOperator

模块  java.base
软件包  java.util.function

Interface IntUnaryOperator

  • Functional Interface:
    这是一个功能接口,因此可以用作lambda表达式或方法引用的赋值目标。

    @FunctionalInterface
    public interface IntUnaryOperator
    表示对单个int值操作数的操作,该操作数产生int值的结果。 这是4481308244590的原始类型专业化int 。

    这是一个functional interface,其功能方法是applyAsInt(int) 。

 
 

方法摘要

All MethodsStatic MethodsInstance MethodsAbstract MethodsDefault Methods
变量和类型方法描述
default IntUnaryOperator andThen​(IntUnaryOperator after)
返回首先将此运算符应用于其输入的 after运算符,然后将 after运算符应用于结果。
int applyAsInt​(int operand)
将此运算符应用于给定的操作数。
default IntUnaryOperator compose​(IntUnaryOperator before)
返回一个组合运算符,该运算符首先将 before运算符应用于其输入,然后将此运算符应用于结果。
static IntUnaryOperator identity()
返回始终返回其输入参数的一元运算符。
 
 
 
原文地址:https://www.cnblogs.com/firestar277/p/14532362.html