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)
applymethods of multiple Consumers. This BiConsumer's
applymethod is performed followed by the
applymethod of the specified BiConsumer operation.
other- an additional BiConsumer which will be chained after this BiConsumer
applymethod of this BiConsumer and the
applymethod of the specified BiConsumer operation
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.