ebul-func/src/main/java/info/ebenoit/ebul/func/FloatSupplier.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

28 lines
678 B
Java

package info.ebenoit.ebul.func;
/**
* Represents a supplier of {@code float}-valued results. This is the {@code float}-producing primitive specialisation
* of {@link java.util.function.Supplier}.
*
* <p>
* There is no requirement that a distinct result be returned each time the supplier is invoked.
*
* <p>
* This is a {@link java.util.function functional interface} whose functional method is {@link #getAsFloat()}.
*
* @see java.util.function.Supplier
*
* @author <a href="mailto:ebenoit@ebenoit.info">E. Benoît</a>
*/
@FunctionalInterface
public interface FloatSupplier
{
/**
* Gets a result.
*
* @return a result
*/
public float getAsFloat( );
}