Stay organized with collections
Save and categorize content based on your preferences.
ToIntBiFunction
public
interface
ToIntBiFunction
java.util.function.ToIntBiFunction<T, U>
|
Represents a function that accepts two arguments and produces an int-valued
result. This is the int
-producing primitive specialization for
BiFunction
.
This is a functional interface
whose functional method is applyAsInt(java.lang.Object, java.lang.Object)
.
Summary
Public methods |
abstract
int
|
applyAsInt(T t, U u)
Applies this function to the given arguments.
|
Public methods
applyAsInt
public abstract int applyAsInt (T t,
U u)
Applies this function to the given arguments.
Parameters |
t |
T : the first function argument |
u |
U : the second function argument |
Returns |
int |
the function result |
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,["# ToIntBiFunction\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nToIntBiFunction\n===============\n\n\n`\npublic\n\n\ninterface\nToIntBiFunction\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------|\n| java.util.function.ToIntBiFunction\\\u003cT, U\\\u003e |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRepresents a function that accepts two arguments and produces an int-valued\nresult. This is the `int`-producing primitive specialization for\n[BiFunction](/reference/java/util/function/BiFunction).\n\nThis is a [functional interface](/reference/java/util/function/package-summary)\nwhose functional method is [applyAsInt(java.lang.Object, java.lang.Object)](/reference/java/util/function/ToIntBiFunction#applyAsInt(T,%20U)). \n**See also:**\n\n- [BiFunction](/reference/java/util/function/BiFunction)\n\nSummary\n-------\n\n| ### Public methods ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract int` | ` `[applyAsInt](/reference/java/util/function/ToIntBiFunction#applyAsInt(T,%20U))`(T t, U u) ` Applies this function to the given arguments. |\n\nPublic methods\n--------------\n\n### applyAsInt\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract int applyAsInt (T t, \n U u)\n```\n\nApplies this function to the given arguments.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----|------------------------------------------|\n| `t` | `T`: the first function argument \u003cbr /\u003e |\n| `u` | `U`: the second function argument \u003cbr /\u003e |\n\n| Returns ||\n|-------|----------------------------|\n| `int` | the function result \u003cbr /\u003e |"]]