src/share/classes/java/util/function/IntBinaryOperator.java
Print this page
rev 6273 : 8004561: Additional functional interfaces, extension methods and name changes
Summary: Adds additional functional interfaces for primitives and "Bi" (two operand). Adds utility extension methods. Includes some name changes for existing functional interfaces per EG decisions.
Reviewed-by: briangoetz
*** 25,34 ****
--- 25,37 ----
package java.util.function;
/**
* An operation on two {@code int} operands yielding an {@code int} result.
*
+ * <p>This is the primitive type specialization of {@link BinaryOperator} for
+ * {@code int}.
+ *
* @since 1.8
*/
public interface IntBinaryOperator {
/**
*** 38,44 ****
*
* @param left the left operand value
* @param right the right operand value
* @return the result of the operation
*/
! public int operateAsInt(int left, int right);
}
--- 41,47 ----
*
* @param left the left operand value
* @param right the right operand value
* @return the result of the operation
*/
! public int applyAsInt(int left, int right);
}