Added in API level 24

ObjIntConsumer

@FunctionalInterface interface ObjIntConsumer<T : Any!>
java.util.function.ObjIntConsumer

Represents an operation that accepts an object-valued and a int-valued argument, and returns no result. This is the (reference, int) specialization of BiConsumer. Unlike most other functional interfaces, ObjIntConsumer is expected to operate via side-effects.

This is a functional interface whose functional method is accept(java.lang.Object,int).

Summary

Public methods
abstract Unit
accept(t: T, value: Int)

Performs this operation on the given arguments.

Public methods

accept

Added in API level 24
abstract fun accept(
    t: T,
    value: Int
): Unit

Performs this operation on the given arguments.

Parameters
t T: the first input argument
value Int: the second input argument