jdk/src/share/classes/java/util/function/IntBinaryOperator.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 two {@code int} operands yielding an {@code int} result.
    28  * An operation on two {@code int} operands yielding an {@code int} result.
       
    29  * This is the primitive type specialization of {@link BinaryOperator} for
       
    30  * {@code int}.
    29  *
    31  *
       
    32  * @see BinaryOperator
    30  * @since 1.8
    33  * @since 1.8
    31  */
    34  */
    32 @FunctionalInterface
    35 @FunctionalInterface
    33 public interface IntBinaryOperator {
    36 public interface IntBinaryOperator {
    34 
    37 
    39      *
    42      *
    40      * @param left the left operand value
    43      * @param left the left operand value
    41      * @param right  the right operand value
    44      * @param right  the right operand value
    42      * @return the result of the operation
    45      * @return the result of the operation
    43      */
    46      */
    44     public int operateAsInt(int left, int right);
    47     public int applyAsInt(int left, int right);
    45 }
    48 }