APIdia Launch Partner
Top Description Methods
java.util.function

public Interface ToLongFunction<T>

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

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(Object).

Since
1.8
See Also
Function

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the function result
applyAsLong
(T
the function argument
value
)

Applies this function to the given argument.

Method Detail

applyAsLongback to summary
public long applyAsLong(T value)

Applies this function to the given argument.

Parameters
value:T

the function argument

Returns:long

the function result