@FunctionalInterface public interface DoubleConsumer
Consumer
for
double
. Unlike most other functional interfaces,
DoubleConsumer
is expected to operate via side-effects.Consumer
Modifier and Type | Method and Description |
---|---|
void |
accept(double value)
Accept an input value.
|
default DoubleConsumer |
chain(DoubleConsumer other)
Returns a
DoubleConsumer which performs, in sequence, the operation
represented by this object followed by the operation represented by
another DoubleConsumer . |
void accept(double value)
value
- the input valuedefault DoubleConsumer chain(DoubleConsumer other)
DoubleConsumer
which performs, in sequence, the operation
represented by this object followed by the operation represented by
another DoubleConsumer
.
Any exceptions thrown by either accept
method are relayed
to the caller; if performing this operation throws an exception, the
other operation will not be performed.
other
- a DoubleConsumer which will be chained after this
DoubleConsumeraccept
method
of this DoubleConsumer and the accept
method of the specified IntConsumer
operationNullPointerException
- if other is null Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-0