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