Stay organized with collections
Save and categorize content based on your preferences.
LongMapMultiConsumer
@FunctionalInterface interface 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
to replace a long value with zero or more long values.
This is a functional interface whose functional method is accept(long,java.util.function.LongConsumer)
.
Summary
Public methods |
abstract Unit |
Replaces the given value with zero or more values by feeding the mapped values to the lc consumer.
|
Public methods
accept
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: the long value coming from upstream |
lc |
LongConsumer!: a LongConsumer accepting the mapped values |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# LongStream.LongMapMultiConsumer\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nLongMapMultiConsumer\n====================\n\n```\n@FunctionalInterface interface LongMapMultiConsumer\n```\n\n|-------------------------------------------------------|\n| [java.util.stream.LongStream.LongMapMultiConsumer](#) |\n\nRepresents an operation that accepts a `long`-valued argument and a LongConsumer, and returns no result. This functional interface is used by [LongStream.mapMulti](/reference/kotlin/java/util/stream/LongStream#mapMulti(java.util.stream.LongStream.LongMapMultiConsumer)) to replace a long value with zero or more long values.\n\nThis is a [functional interface](../function/package-summary.html) whose functional method is [accept(long,java.util.function.LongConsumer)](#accept(kotlin.Long,%20java.util.function.LongConsumer)).\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [accept](#accept(kotlin.Long,%20java.util.function.LongConsumer))`(`value:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `lc:` `[LongConsumer](../function/LongConsumer.html#)!`)` Replaces the given `value` with zero or more values by feeding the mapped values to the `lc` consumer. |\n\nPublic methods\n--------------\n\n### accept\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun accept(\n value: Long, \n lc: LongConsumer!\n): Unit\n```\n\nReplaces the given `value` with zero or more values by feeding the mapped values to the `lc` consumer.\n\n| Parameters ||\n|---------|-------------------------------------------------------------------------------------------------------------------|\n| `value` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): the long value coming from upstream |\n| `lc` | [LongConsumer](../function/LongConsumer.html#)!: a `LongConsumer` accepting the mapped values |"]]