All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.argento.jfunction.IntToDouble Maven / Gradle / Ivy

There is a newer version: 1.0
Show newest version
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