ru.argento.jfunction.IntToDouble Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfunction Show documentation
Show all versions of jfunction Show documentation
Library for various functional interface manipulations
package ru.argento.jfunction;
import java.util.Objects;
/**
* Double precision floating point number function of integer argument.
*
* @param Function result type.
*/
@FunctionalInterface
public interface IntToDouble
extends ObjectToDouble
{
/**
* Apply the function.
*
* @param value Original value.
* @return Result value.
*/
double toDouble(int value);
@Override
default double toDouble(Integer value)
{
Objects.requireNonNull(value, "null_value");
return toDouble(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy