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

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

There is a newer version: 1.0
Show newest version
package ru.argento.jfunction;

import java.util.Objects;

/**
 * Long integer function of integer argument.
 *
 * @param  Function result type.
 */
@FunctionalInterface
public interface IntToLong
    extends ObjectToLong
{
    /**
     * Apply the function.
     *
     * @param value Original value.
     * @return Result value.
     */
    long toLong(int value);

    @Override
    default long toLong(Integer value)
    {
        Objects.requireNonNull(value, "null_value");

        return toLong(value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy