ebul-func/src/main/java/info/ebenoit/ebul/func/FloatBinaryOperator.java
Emmanuel BENOîT ea2fc5a632 Float functional interfaces
These interfaces correspond to the JRE-provided primitive
specialisations of functional interfaces for the float type.
2015-09-11 15:01:54 +02:00

34 lines
873 B
Java

package info.ebenoit.ebul.func;
import java.util.function.BinaryOperator;
/**
* Represents an operation upon two <code>float</code>-valued operands and producing a <code>float</code>-valued result.
* This is the primitive type specialisation of {@link BinaryOperator} for <code>float</code>.
* <p>
* This is a {@link java.util.function functional interface} whose functional method is
* {@link #applyAsFloat(float, float)}.
*
* @author <a href="mailto:ebenoit@ebenoit.info">E. Benoît</a>
*/
@FunctionalInterface
public interface FloatBinaryOperator
{
/**
* Applies this operator to the given operands.
*
* @param t
* the first operand
* @param u
* the second operand
* @return the result
* @throws FunctionException
* if a checked exception occurs
*/
public float applyAsFloat( float t , float u );
}