ObjLongConsumer  |  API reference  |  Android Developers (original) (raw)

@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](/reference/kotlin/java/util/function/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)](#accept%28java.util.function.ObjLongConsumer.T,%20kotlin.Long%29).

Summary

Public methods
abstract Unit accept(t: T, value: Long) 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.