ToLongFunction

  • ToLongFunction is a functional interface representing a function that produces a long-valued result.

  • It is a specialization of the Function interface specifically for producing long values.

  • The core functionality is provided by the applyAsLong method, which takes an argument and returns a long result.

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

See Also

Public Method Summary

abstract long
applyAsLong(T value)
Applies this function to the given argument.

Public Methods

public abstract long applyAsLong (T value)

Applies this function to the given argument.

Parameters
value the function argument
Returns
  • the function result