Stay organized with collections
Save and categorize content based on your preferences.
DoubleMapMultiConsumer
@FunctionalInterface interface DoubleMapMultiConsumer
Represents an operation that accepts a double
-valued argument and a DoubleConsumer, and returns no result. This functional interface is used by DoubleStream.mapMulti
to replace a double value with zero or more double values.
This is a functional interface whose functional method is accept(double,java.util.function.DoubleConsumer)
.
Summary
Public methods |
abstract Unit |
Replaces the given value with zero or more values by feeding the mapped values to the dc consumer.
|
Public methods
accept
abstract fun accept(
value: Double,
dc: DoubleConsumer!
): Unit
Replaces the given value
with zero or more values by feeding the mapped values to the dc
consumer.
Parameters |
value |
Double: the double value coming from upstream |
dc |
DoubleConsumer!: a DoubleConsumer 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,["# DoubleStream.DoubleMapMultiConsumer\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDoubleMapMultiConsumer\n======================\n\n```\n@FunctionalInterface interface DoubleMapMultiConsumer\n```\n\n|-----------------------------------------------------------|\n| [java.util.stream.DoubleStream.DoubleMapMultiConsumer](#) |\n\nRepresents an operation that accepts a `double`-valued argument and a DoubleConsumer, and returns no result. This functional interface is used by [DoubleStream.mapMulti](/reference/kotlin/java/util/stream/DoubleStream#mapMulti(java.util.stream.DoubleStream.DoubleMapMultiConsumer)) to replace a double value with zero or more double values.\n\nThis is a [functional interface](../function/package-summary.html) whose functional method is [accept(double,java.util.function.DoubleConsumer)](#accept(kotlin.Double,%20java.util.function.DoubleConsumer)).\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.Double,%20java.util.function.DoubleConsumer))`(`value:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `dc:` `[DoubleConsumer](../function/DoubleConsumer.html#)!`)` Replaces the given `value` with zero or more values by feeding the mapped values to the `dc` 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: Double, \n dc: DoubleConsumer!\n): Unit\n```\n\nReplaces the given `value` with zero or more values by feeding the mapped values to the `dc` consumer.\n\n| Parameters ||\n|---------|-------------------------------------------------------------------------------------------------------------------------|\n| `value` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html): the double value coming from upstream |\n| `dc` | [DoubleConsumer](../function/DoubleConsumer.html#)!: a `DoubleConsumer` accepting the mapped values |"]]