jdk/src/share/classes/java/util/function/IntUnaryOperator.java
changeset 16011 890a7ed97f6c
parent 15647 314007859004
child 17695 032254f2467b
equal deleted inserted replaced
16010:2727163b5df5 16011:890a7ed97f6c
    24  */
    24  */
    25 package java.util.function;
    25 package java.util.function;
    26 
    26 
    27 /**
    27 /**
    28  * An operation on a single {@code int} operand yielding an {@code int} result.
    28  * An operation on a single {@code int} operand yielding an {@code int} result.
       
    29  * This is the primitive type specialization of {@link UnaryOperator} for
       
    30  * {@code int}.
    29  *
    31  *
       
    32  * @see UnaryOperator
    30  * @since 1.8
    33  * @since 1.8
    31  */
    34  */
    32 @FunctionalInterface
    35 @FunctionalInterface
    33 public interface IntUnaryOperator {
    36 public interface IntUnaryOperator {
    34 
    37 
    35     /**
    38     /**
    36      * Returns the {@code int} result of the operation upon the {@code int}
    39      * Returns the {@code int} value result of the operation upon the
    37      * operand.
    40      * {@code int}  operand.
    38      *
    41      *
    39      * @param operand the operand value
    42      * @param operand the operand value
    40      * @return the operation result value
    43      * @return the operation result value
    41      */
    44      */
    42     public int operateAsInt(int operand);
    45     public int applyAsInt(int operand);
    43 }
    46 }