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

ternary.checked.DblIntLongToNilE Maven / Gradle / Ivy

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

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

    /**
     * Performs this operation.
     *
     * @param d argument 1
     * @param i argument 2
     * @param l argument 3
     * @throws E if the operation cannot be completed
     */
    void call(double d, int i, long l) throws E;

    /**
     * Binds {@code (d)} to the beginning of {@code f}, returning a new function
     * of type {@code (int, long) -> void}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param d argument 1
     * @return a new function {@code (int i, long l) -> void} that calls
     *      {@code f.call(d, i, l)}.
     */
    static  net.mintern.functions.binary.checked.IntLongToNilE
    bind(DblIntLongToNilE f, double d) {
        return (i, l) -> f.call(d, i, l);
    }

    /**
     * Binds {@code (d)} to the beginning of {@code this}, returning a new function
     * of type {@code (int, long) -> void}.
     *
     * @param d argument 1
     * @return a new function {@code (int i, long l) -> void} that calls
     *      {@code this.call(d, i, l)}.
     */
    default net.mintern.functions.binary.checked.IntLongToNilE bind(double d) {
        return DblIntLongToNilE.bind(this, d);
    }

    /**
     * Binds {@code (i, l)} to the end of {@code f}, returning a new function
     * of type {@code (double) -> void}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param i argument 2
     * @param l argument 3
     * @return a new function {@code (double d) -> void} that calls
     *      {@code f.call(d, i, l)}.
     */
    static  net.mintern.functions.unary.checked.DblToNilE
    rbind(DblIntLongToNilE f, int i, long l) {
        return (d) -> f.call(d, i, l);
    }

    /**
     * Binds {@code (i, l)} to the end of {@code this}, returning a new function
     * of type {@code (double) -> void}.
     *
     * @param i argument 2
     * @param l argument 3
     * @return a new function {@code (double d) -> void} that calls
     *      {@code this.call(d, i, l)}.
     */
    default net.mintern.functions.unary.checked.DblToNilE rbind(int i, long l) {
        return DblIntLongToNilE.rbind(this, i, l);
    }

    /**
     * Binds {@code (d, i)} to the beginning of {@code f}, returning a new function
     * of type {@code (long) -> void}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param d argument 1
     * @param i argument 2
     * @return a new function {@code (long l) -> void} that calls
     *      {@code f.call(d, i, l)}.
     */
    static  net.mintern.functions.unary.checked.LongToNilE
    bind(DblIntLongToNilE f, double d, int i) {
        return (l) -> f.call(d, i, l);
    }

    /**
     * Binds {@code (d, i)} to the beginning of {@code this}, returning a new function
     * of type {@code (long) -> void}.
     *
     * @param d argument 1
     * @param i argument 2
     * @return a new function {@code (long l) -> void} that calls
     *      {@code this.call(d, i, l)}.
     */
    default net.mintern.functions.unary.checked.LongToNilE bind(double d, int i) {
        return DblIntLongToNilE.bind(this, d, i);
    }

    /**
     * Binds {@code (l)} to the end of {@code f}, returning a new function
     * of type {@code (double, int) -> void}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param l argument 3
     * @return a new function {@code (double d, int i) -> void} that calls
     *      {@code f.call(d, i, l)}.
     */
    static  net.mintern.functions.binary.checked.DblIntToNilE
    rbind(DblIntLongToNilE f, long l) {
        return (d, i) -> f.call(d, i, l);
    }

    /**
     * Binds {@code (l)} to the end of {@code this}, returning a new function
     * of type {@code (double, int) -> void}.
     *
     * @param l argument 3
     * @return a new function {@code (double d, int i) -> void} that calls
     *      {@code this.call(d, i, l)}.
     */
    default net.mintern.functions.binary.checked.DblIntToNilE rbind(long l) {
        return DblIntLongToNilE.rbind(this, l);
    }

    /**
     * Binds {@code (d, i, l)} 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 d argument 1
     * @param i argument 2
     * @param l argument 3
     * @return a new function {@code () -> void} that calls
     *      {@code f.call(d, i, l)}.
     */
    static  net.mintern.functions.nullary.checked.NilToNilE
    bind(DblIntLongToNilE f, double d, int i, long l) {
        return () -> f.call(d, i, l);
    }

    /**
     * Binds {@code (d, i, l)} to {@code this}, returning a new function
     * of type {@code () -> void}.
     *
     * @param d argument 1
     * @param i argument 2
     * @param l argument 3
     * @return a new function {@code () -> void} that calls
     *      {@code this.call(d, i, l)}.
     */
    default net.mintern.functions.nullary.checked.NilToNilE bind(double d, int i, long l) {
        return DblIntLongToNilE.bind(this, d, i, l);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy