DoubleToLongFunction

  • DoubleToLongFunction is a functional interface representing a function that takes a double as input and returns a long.

  • It is a specialization of the Function interface for primitive double and long types.

  • The core functionality is provided by the applyAsLong method, which executes the function with the given double argument.

public interface DoubleToLongFunction

Represents a function that accepts a double-valued argument and produces a long-valued result. This is the double-to-long primitive specialization for Function.

This is a functional interface whose functional method is applyAsLong(double).

See Also

Public Method Summary

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

Public Methods

public abstract long applyAsLong (double value)

Applies this function to the given argument.

Parameters
value the function argument
Returns
  • the function result