src/share/classes/java/util/function/LongBlock.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
*** 23,45 ****
* questions.
*/
package java.util.function;
/**
! * An operation upon a {@code long} input value. The operation may modify
! * external state.
*
! * <p/>This is the primitive type specialization of {@link Block} for
! * {@code long} and also may be used as a {@code Block<Long>}.
*
* @since 1.8
*/
public interface LongBlock {
/**
! * Use the {@code long} input value in an operation which may modify
! * external state.
*
! * @param t the input value
*/
! public void accept(long t);
}
--- 23,45 ----
* questions.
*/
package java.util.function;
/**
! * An operation upon a long value. Unlike most other functional interfaces,
! * {@code LongBlock} is expected to operate via side-effects.
*
! * <p>This is the primitive type specialization of {@link Block} for
! * {@code long}.
*
* @since 1.8
*/
public interface LongBlock {
/**
! * Use the {@code long} input value in an operation which may perform
! * side-effects.
*
! * @param value the input value
*/
! public void accept(long value);
}