Top Description Methods
java.util.function

public Interface ToIntFunction<T>

Annotations
@FunctionalInterface
Type Parameters
<T>
the type of the input to the function

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

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

Since
1.8
See Also
Function

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the function result
applyAsInt
(T
the function argument
value
)

Applies this function to the given argument.

Method Detail

applyAsIntback to summary
public int applyAsInt(T value)

Applies this function to the given argument.

Parameters
value:T

the function argument

Returns:int

the function result