All Downloads are FREE. Search and download functionalities are using the official Maven repository.

binary.checked.FloatFloatToNilE Maven / Gradle / Ivy

There is a newer version: 2.0
Show newest version
package net.mintern.functions.binary.checked;

/**
 * An operation of type {@code (float, float) -> void}.
 *
 * @param  the {@code Exception} type that the operation may throw
 */
@FunctionalInterface
public interface FloatFloatToNilE {

    /**
     * Performs this operation.
     *
     * @param fl1 argument 1
     * @param fl2 argument 2
     * @throws E if the operation cannot be completed
     */
    void call(float fl1, float fl2) throws E;

    /**
     * Binds {@code (fl1)} to the beginning of {@code f}, returning a new function
     * of type {@code (float) -> void}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param fl1 argument 1
     * @return a new function {@code (float fl2) -> void} that calls
     *      {@code f.call(fl1, fl2)}.
     */
    static  net.mintern.functions.unary.checked.FloatToNilE
    bind(FloatFloatToNilE f, float fl1) {
        return (fl2) -> f.call(fl1, fl2);
    }

    /**
     * Binds {@code (fl1)} to the beginning of {@code this}, returning a new function
     * of type {@code (float) -> void}.
     *
     * @param fl1 argument 1
     * @return a new function {@code (float fl2) -> void} that calls
     *      {@code this.call(fl1, fl2)}.
     */
    default net.mintern.functions.unary.checked.FloatToNilE bind(float fl1) {
        return FloatFloatToNilE.bind(this, fl1);
    }

    /**
     * Binds {@code (fl2)} to the end of {@code f}, returning a new function
     * of type {@code (float) -> void}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param fl2 argument 2
     * @return a new function {@code (float fl1) -> void} that calls
     *      {@code f.call(fl1, fl2)}.
     */
    static  net.mintern.functions.unary.checked.FloatToNilE
    rbind(FloatFloatToNilE f, float fl2) {
        return (fl1) -> f.call(fl1, fl2);
    }

    /**
     * Binds {@code (fl2)} to the end of {@code this}, returning a new function
     * of type {@code (float) -> void}.
     *
     * @param fl2 argument 2
     * @return a new function {@code (float fl1) -> void} that calls
     *      {@code this.call(fl1, fl2)}.
     */
    default net.mintern.functions.unary.checked.FloatToNilE rbind(float fl2) {
        return FloatFloatToNilE.rbind(this, fl2);
    }

    /**
     * Binds {@code (fl1, fl2)} to {@code f}, returning a new function
     * of type {@code () -> void}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param fl1 argument 1
     * @param fl2 argument 2
     * @return a new function {@code () -> void} that calls
     *      {@code f.call(fl1, fl2)}.
     */
    static  net.mintern.functions.nullary.checked.NilToNilE
    bind(FloatFloatToNilE f, float fl1, float fl2) {
        return () -> f.call(fl1, fl2);
    }

    /**
     * Binds {@code (fl1, fl2)} to {@code this}, returning a new function
     * of type {@code () -> void}.
     *
     * @param fl1 argument 1
     * @param fl2 argument 2
     * @return a new function {@code () -> void} that calls
     *      {@code this.call(fl1, fl2)}.
     */
    default net.mintern.functions.nullary.checked.NilToNilE bind(float fl1, float fl2) {
        return FloatFloatToNilE.bind(this, fl1, fl2);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy