DoubleFunction

  • DoubleFunction represents a function that takes a double as input and produces a result of a generic type.

  • It is a functional interface with a single method, apply, which accepts a double and returns a value.

  • This interface is a specialization of the Function interface for primitive double inputs.

public interface DoubleFunction

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

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

See Also

Public Method Summary

abstract R
apply(double value)
Applies this function to the given argument.

Public Methods

public abstract R apply (double value)

Applies this function to the given argument.

Parameters
value the function argument
Returns
  • the function result