ru.argento.jfunction.IntToLong 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;
/**
* 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