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