On this page

FailableIntToFloatFunction

@FunctionalInterface public abstract interface org.apache.commons.lang3.function.FailableIntToFloatFunction<E extends Throwable>[source]

A functional interface like IntToDoubleFunction but for float that declares a Throwable.

Parameters:

<E> – The kind of thrown exception or error.

Since:

3.18.0

Fields and constants

NOP

NOP singleton

@SuppressWarnings({"rawtypes"}) public static final FailableIntToFloatFunction NOP[source]

NOP singleton

Methods

applyAsFloat(int)

Applies this function to the given argument.

nop()

Gets the NOP singleton.

public abstract float applyAsFloat(int value) throws E[source]

Applies this function to the given argument.

Parameters:

value – The function argument

Returns:

The function result

Throws:

E – Thrown when the function fails.

@SuppressWarnings({"unchecked"}) public static <E extends Throwable> FailableIntToFloatFunction<E> nop()[source]

Gets the NOP singleton.

Type parameters:

<E> – The kind of thrown exception or error.

Returns:

The NOP singleton.