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

net.mintern.functions.ternary.checked.LongLongDblToNilE Maven / Gradle / Ivy

The newest version!
package net.mintern.functions.ternary.checked;

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

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

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

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

    /**
     * Binds {@code (l2, d)} to the end 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 l2 argument 2
     * @param d argument 3
     * @return a new function {@code (long l1) -> void} that calls
     *      {@code f.call(l1, l2, d)}.
     */
    static  net.mintern.functions.unary.checked.LongToNilE
    rbind(LongLongDblToNilE f, long l2, double d) {
        return (l1) -> f.call(l1, l2, d);
    }

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

    /**
     * Binds {@code (l1, l2)} to the beginning 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 l1 argument 1
     * @param l2 argument 2
     * @return a new function {@code (double d) -> void} that calls
     *      {@code f.call(l1, l2, d)}.
     */
    static  net.mintern.functions.unary.checked.DblToNilE
    bind(LongLongDblToNilE f, long l1, long l2) {
        return (d) -> f.call(l1, l2, d);
    }

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy