Stay organized with collections
Save and categorize content based on your preferences.
ObjDoubleConsumer
public
interface
ObjDoubleConsumer
java.util.function.ObjDoubleConsumer<T>
|
Represents an operation that accepts an object-valued and a
double
-valued argument, and returns no result. This is the
(reference, double)
specialization of BiConsumer
.
Unlike most other functional interfaces, ObjDoubleConsumer
is
expected to operate via side-effects.
This is a functional interface
whose functional method is accept(java.lang.Object, double)
.
Summary
Public methods |
abstract
void
|
accept(T t, double value)
Performs this operation on the given arguments.
|
Public methods
accept
public abstract void accept (T t,
double value)
Performs this operation on the given arguments.
Parameters |
t |
T : the first input argument |
value |
double : the second input argument |
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ObjDoubleConsumer\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nObjDoubleConsumer\n=================\n\n\n`\npublic\n\n\ninterface\nObjDoubleConsumer\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------|\n| java.util.function.ObjDoubleConsumer\\\u003cT\\\u003e |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRepresents an operation that accepts an object-valued and a\n`double`-valued argument, and returns no result. This is the\n`(reference, double)` specialization of [BiConsumer](/reference/java/util/function/BiConsumer).\nUnlike most other functional interfaces, `ObjDoubleConsumer` is\nexpected to operate via side-effects.\n\nThis is a [functional interface](/reference/java/util/function/package-summary)\nwhose functional method is [accept(java.lang.Object, double)](/reference/java/util/function/ObjDoubleConsumer#accept(T,%20double)). \n**See also:**\n\n- [BiConsumer](/reference/java/util/function/BiConsumer)\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[accept](/reference/java/util/function/ObjDoubleConsumer#accept(T,%20double))`(T t, double value) ` Performs this operation on the given arguments. |\n\nPublic methods\n--------------\n\n### accept\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void accept (T t, \n double value)\n```\n\nPerforms this operation on the given arguments.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|--------------------------------------------|\n| `t` | `T`: the first input argument \u003cbr /\u003e |\n| `value` | `double`: the second input argument \u003cbr /\u003e |"]]