Added in API level 24
LongToIntFunction
@FunctionalInterface interface LongToIntFunction
| java.util.function.LongToIntFunction |
Represents a function that accepts a long-valued argument and produces an int-valued result. This is the long-to-int primitive specialization for Function.
This is a functional interface whose functional method is applyAsInt(long).
Summary
| Public methods | |
|---|---|
| abstract Int |
applyAsInt(value: Long)Applies this function to the given argument. |
Public methods
applyAsInt
Added in API level 24
abstract fun applyAsInt(value: Long): Int
Applies this function to the given argument.
| Parameters | |
|---|---|
value |
Long: the function argument |
| Return | |
|---|---|
Int |
the function result |