ru.argento.jfunction.LongOperator 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 unary operator.
*/
@FunctionalInterface
public interface LongOperator
extends LongToObject, ObjectToLong
{
/**
* Apply the operator.
*
* @param value Original value.
* @return Result value.
*/
long apply(long value);
@Override
default Long toObject(long value)
{
return apply(value);
}
@Override
default long toLong(Long value)
{
Objects.requireNonNull(value, "null_value");
return apply(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy