@FunctionalInterface interface ObjDoubleConsumer<T : Any!>

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

This is a functional interface whose functional method is accept(Object,double).

Summary

Public methods
abstract Unit

accept(t: T, value: Double)

Performs this operation on the given arguments.

Public methods

accept

abstract fun accept(
    t: T,
    value: Double
): Unit

Performs this operation on the given arguments.

Parameters
t T: the first input argument
value Double: 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 2026-02-26 UTC.