Stay organized with collections
Save and categorize content based on your preferences.
ObjLongConsumer
@FunctionalInterface interface ObjLongConsumer<T : Any!>
Represents an operation that accepts an object-valued and a long
-valued argument, and returns no result. This is the (reference, long)
specialization of BiConsumer
. Unlike most other functional interfaces, ObjLongConsumer
is expected to operate via side-effects.
This is a functional interface whose functional method is accept(java.lang.Object,long)
.
Summary
Public methods |
abstract Unit |
Performs this operation on the given arguments.
|
Public methods
accept
abstract fun accept(
t: T,
value: Long
): Unit
Performs this operation on the given arguments.
Parameters |
t |
T: the first input argument |
value |
Long: 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,["# ObjLongConsumer\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nObjLongConsumer\n===============\n\n```\n@FunctionalInterface interface ObjLongConsumer\u003cT : Any!\u003e\n```\n\n|-----------------------------------------|\n| [java.util.function.ObjLongConsumer](#) |\n\nRepresents an operation that accepts an object-valued and a `long`-valued argument, and returns no result. This is the `(reference, long)` specialization of [BiConsumer](/reference/kotlin/java/util/function/BiConsumer). Unlike most other functional interfaces, `ObjLongConsumer` is expected to operate via side-effects.\n\nThis is a [functional interface](/reference/kotlin/java/util/function/package-summary) whose functional method is [accept(java.lang.Object,long)](#accept(java.util.function.ObjLongConsumer.T,%20kotlin.Long)).\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [accept](#accept(java.util.function.ObjLongConsumer.T,%20kotlin.Long))`(`t:` `T`, `value:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Performs this operation on the given arguments. |\n\nPublic methods\n--------------\n\n### accept\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun accept(\n t: T, \n value: Long\n): Unit\n```\n\nPerforms this operation on the given arguments.\n\n| Parameters ||\n|---------|---------------------------------------------------------------------------------------------------------|\n| `t` | T: the first input argument |\n| `value` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): the second input argument |"]]