Interface ThrowableDoubleConsumer
-
- All Superinterfaces:
java.util.function.DoubleConsumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowableDoubleConsumer extends java.util.function.DoubleConsumerRepresents an operation that accepts a singledouble-valued argument and returns no result. This is the primitive type specialization ofThrowableConsumerfordouble. Unlike most other functional interfaces,DoubleConsumeris expected to operate via side-effects.Permits checked exceptions unlike
DoubleConsumerThis is a functional interface whose functional method is
accept(double).- See Also:
ThrowableConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(double value)Performs this operation on the given argument.voidacceptUnsafe(double value)Performs this operation on the given argument.
-
-
-
Method Detail
-
acceptUnsafe
void acceptUnsafe(double value) throws java.lang.ThrowablePerforms this operation on the given argument.- Parameters:
value- the input argument- Throws:
java.lang.Throwable- occurred during processing
-
accept
default void accept(double value)
Performs this operation on the given argument.- Specified by:
acceptin interfacejava.util.function.DoubleConsumer- Parameters:
value- the input argument
-
-