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