src/share/classes/java/util/function/LongBinaryOperator.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 long} operands yielding a {@code long} result. * + * <p>This is the primitive type specialization of {@link BinaryOperator} for + * {@code long}. + * * @since 1.8 */ public interface LongBinaryOperator { /**
*** 38,44 **** * * @param left the left operand value * @param right the right operand value * @return the result of the operation */ ! public long operateAsLong(long left, long right); } --- 41,47 ---- * * @param left the left operand value * @param right the right operand value * @return the result of the operation */ ! public long applyAsLong(long left, long right); }