Added in API level 24

ToLongFunction

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

Represents a function that produces a long-valued result. This is the long-producing primitive specialization for Function.

This is a functional interface whose functional method is applyAsLong(java.lang.Object).

Summary

Public methods
abstract Long
applyAsLong(value: T)

Applies this function to the given argument.

Public methods

applyAsLong

Added in API level 24
abstract fun applyAsLong(value: T): Long

Applies this function to the given argument.

Parameters
value T: the function argument
Return
Long the function result