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