T- the type of the first argument to the
U- the type of the second argument to the
@FunctionalInterface public interface BiConsumer<T,U>
Consumer. Unlike most other functional interfaces,
BiConsumeris expected to operate via side-effects.
|Modifier and Type||Method and Description|
Performs operations upon the provided objects which may modify those objects and/or external state.
Returns a BiConsumer which performs in sequence the
t- an input object
u- an input object
default BiConsumer<T,U> chain(BiConsumer<? super T,? super U> other)
acceptmethods of multiple BiConsumers. This BiConsumer's
acceptmethod is performed followed by the
acceptmethod of the specified BiConsumer operation.
other- an additional BiConsumer which will be chained after this BiConsumer
acceptmethod of this BiConsumer and the
acceptmethod of the specified BiConsumer operation
NullPointerException- 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.