Stay organized with collections
Save and categorize content based on your preferences.
IntToDoubleFunction
public
interface
IntToDoubleFunction
java.util.function.IntToDoubleFunction
|
Represents a function that accepts an int-valued argument and produces a
double-valued result. This is the int
-to-double
primitive
specialization for Function
.
This is a functional interface
whose functional method is applyAsDouble(int)
.
Summary
Public methods |
abstract
double
|
applyAsDouble(int value)
Applies this function to the given argument.
|
Public methods
applyAsDouble
public abstract double applyAsDouble (int value)
Applies this function to the given argument.
Parameters |
value |
int : the function argument |
Returns |
double |
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# IntToDoubleFunction\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nIntToDoubleFunction\n===================\n\n\n`\npublic\n\n\ninterface\nIntToDoubleFunction\n`\n\n\n`\n\n\n`\n\n|----------------------------------------|\n| java.util.function.IntToDoubleFunction |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRepresents a function that accepts an int-valued argument and produces a\ndouble-valued result. This is the `int`-to-`double` primitive\nspecialization for [Function](/reference/java/util/function/Function).\n\nThis is a [functional interface](/reference/java/util/function/package-summary)\nwhose functional method is [applyAsDouble(int)](/reference/java/util/function/IntToDoubleFunction#applyAsDouble(int)). \n**See also:**\n\n- [Function](/reference/java/util/function/Function)\n\nSummary\n-------\n\n| ### Public methods ||\n|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract double` | ` `[applyAsDouble](/reference/java/util/function/IntToDoubleFunction#applyAsDouble(int))`(int value) ` Applies this function to the given argument. |\n\nPublic methods\n--------------\n\n### applyAsDouble\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract double applyAsDouble (int value)\n```\n\nApplies this function to the given argument.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-------------------------------------|\n| `value` | `int`: the function argument \u003cbr /\u003e |\n\n| Returns ||\n|----------|----------------------------|\n| `double` | the function result \u003cbr /\u003e |"]]