# LongStream.LongMapMultiConsumer

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# LongMapMultiConsumer

```
@FunctionalInterface interface LongMapMultiConsumer
```

|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.util.stream.LongStream.LongMapMultiConsumer](https://developer.android.com/reference/kotlin/java/util/stream/LongStream.LongMapMultiConsumer#) |

Represents an operation that accepts a `long`-valued argument and a LongConsumer, and returns no result. This functional interface is used by [LongStream.mapMulti](https://developer.android.com/reference/kotlin/java/util/stream/LongStream#mapMulti(java.util.stream.LongStream.LongMapMultiConsumer)) to replace a long value with zero or more long values.

This is a [functional interface](https://developer.android.com/reference/kotlin/java/util/function/package-summary.html) whose functional method is [accept(long,java.util.function.LongConsumer)](https://developer.android.com/reference/kotlin/java/util/stream/LongStream.LongMapMultiConsumer#accept(kotlin.Long,%20java.util.function.LongConsumer)).

## Summary

|                                                                                                                                                                                                                                                                              Public methods                                                                                                                                                                                                                                                                              ||
|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [accept](https://developer.android.com/reference/kotlin/java/util/stream/LongStream.LongMapMultiConsumer#accept(kotlin.Long,%20java.util.function.LongConsumer))`(`value:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `lc:` `[LongConsumer](https://developer.android.com/reference/kotlin/java/util/function/LongConsumer.html#)!`)` Replaces the given `value` with zero or more values by feeding the mapped values to the `lc` consumer. |

## Public methods

### accept

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun accept(
    value: Long, 
    lc: LongConsumer!
): Unit
```

Replaces the given `value` with zero or more values by feeding the mapped values to the `lc` consumer.

|                                                                          Parameters                                                                          ||
|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| `value` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): the long value coming from upstream                                   |
| `lc`    | [LongConsumer](https://developer.android.com/reference/kotlin/java/util/function/LongConsumer.html#)!: a `LongConsumer` accepting the mapped values |