src/share/classes/java/util/function/LongUnaryOperator.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 a single {@code long} operand yielding a {@code long} result. * + * <p>This is the primitive type specialization of {@link UnaryOperator} for + * {@code long}. + * * @since 1.8 */ public interface LongUnaryOperator { /**
*** 36,42 **** * operand. * * @param operand the operand value * @return the operation result value */ ! public long operateAsLong(long operand); } --- 39,45 ---- * operand. * * @param operand the operand value * @return the operation result value */ ! public long applyAsLong(long operand); }