@FunctionalInterface interface ToIntBiFunction<T : Any!, U : Any!>

Represents a function that accepts two arguments and produces an int-valued result. This is the int-producing primitive specialization for BiFunction.

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

Summary

Public methods
abstract Int

applyAsInt(t: T, u: U)

Applies this function to the given arguments.

Public methods

applyAsInt

abstract fun applyAsInt(
    t: T,
    u: U
): Int

Applies this function to the given arguments.

Parameters
t T: the first function argument
u U: the second function argument
Return
Int 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 2026-02-26 UTC.