- Enclosing interface:
IntStream
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an operation that accepts an
int-valued argument
and an IntConsumer, and returns no result. This functional interface is
used by IntStream.mapMulti
to replace an int value with zero or more int values.
This is a functional interface
whose functional method is accept(int, IntConsumer).
- Since:
- 16
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(int value, IntConsumer ic) Replaces the givenvaluewith zero or more values by feeding the mapped values to theicconsumer.
-
Method Details
-
accept
Replaces the givenvaluewith zero or more values by feeding the mapped values to theicconsumer.- Parameters:
value- the int value coming from upstreamic- anIntConsumeraccepting the mapped values
-