Stay organized with collections
Save and categorize content based on your preferences.
Function
public
interface
Function
android.arch.core.util.Function<I, O>
|
Represents a function.
Summary
Public methods |
abstract
O
|
apply(I input)
Applies this function to the given input.
|
Public methods
apply
O apply (I input)
Applies this function to the given input.
Parameters |
input |
I : the input |
Returns |
O |
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,["# Function\n\nadded in [version 1.0.0](/topic/libraries/support-library/revisions) \n\nFunction\n========\n\n| The `android.arch` Architecture Components packages are no longer maintained. They have been superseded by the corresponding [androidx.\\*](/jetpack/androidx/migrate) packages. See [androidx.arch.core.util.Function](/reference/androidx/arch/core/util/Function) instead.\n\n\n`\npublic\n\n\ninterface\nFunction\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------|\n| android.arch.core.util.Function\\\u003cI, O\\\u003e |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRepresents a function.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------|\n| ` abstract O` | ` `[apply](/reference/android/arch/core/util/Function#apply(I))`(I input) ` Applies this function to the given input. |\n\nPublic methods\n--------------\n\n### apply\n\nadded in [version 1.0.0](/topic/libraries/support-library/revisions) \n\n```\nO apply (I input)\n```\n\nApplies this function to the given input.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------------|\n| `input` | `I`: the input \u003cbr /\u003e |\n\n| Returns ||\n|-----|-----------------------------|\n| `O` | the function result. \u003cbr /\u003e |\n\n-\n\n Interfaces\n ----------\n\n - [Function](/reference/android/arch/core/util/Function)"]]