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

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

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

/**
 * An operation of type {@code (T, U, double) -> void}.
 *
 * @param  the type of argument 1
 * @param  the type of argument 2
 * @param  the {@code Exception} type that the operation may throw
 */
@FunctionalInterface
public interface ObjObjDblToNilE {

    /**
     * Performs this operation.
     *
     * @param t argument 1
     * @param u argument 2
     * @param d argument 3
     * @throws E if the operation cannot be completed
     */
    void call(T t, U u, double d) throws E;

    /**
     * Binds {@code (t)} to the beginning of {@code f}, returning a new function
     * of type {@code (U, double) -> void}.
     *
     * @param  the type of argument 1
     * @param  the type of argument 2
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param t argument 1
     * @return a new function {@code (U u, double d) -> void} that calls
     *      {@code f.call(t, u, d)}.
     */
    static  net.mintern.functions.binary.checked.ObjDblToNilE
    bind(ObjObjDblToNilE f, T t) {
        return (u, d) -> f.call(t, u, d);
    }

    /**
     * Binds {@code (t)} to the beginning of {@code this}, returning a new function
     * of type {@code (U, double) -> void}.
     *
     * @param t argument 1
     * @return a new function {@code (U u, double d) -> void} that calls
     *      {@code this.call(t, u, d)}.
     */
    default net.mintern.functions.binary.checked.ObjDblToNilE bind(T t) {
        return ObjObjDblToNilE.bind(this, t);
    }

    /**
     * Binds {@code (u, d)} to the end of {@code f}, returning a new function
     * of type {@code (T) -> void}.
     *
     * @param  the type of argument 1
     * @param  the type of argument 2
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param u argument 2
     * @param d argument 3
     * @return a new function {@code (T t) -> void} that calls
     *      {@code f.call(t, u, d)}.
     */
    static  net.mintern.functions.unary.checked.ObjToNilE
    rbind(ObjObjDblToNilE f, U u, double d) {
        return (t) -> f.call(t, u, d);
    }

    /**
     * Binds {@code (u, d)} to the end of {@code this}, returning a new function
     * of type {@code (T) -> void}.
     *
     * @param u argument 2
     * @param d argument 3
     * @return a new function {@code (T t) -> void} that calls
     *      {@code this.call(t, u, d)}.
     */
    default net.mintern.functions.unary.checked.ObjToNilE rbind(U u, double d) {
        return ObjObjDblToNilE.rbind(this, u, d);
    }

    /**
     * Binds {@code (t, u)} to the beginning of {@code f}, returning a new function
     * of type {@code (double) -> void}.
     *
     * @param  the type of argument 1
     * @param  the type of argument 2
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param t argument 1
     * @param u argument 2
     * @return a new function {@code (double d) -> void} that calls
     *      {@code f.call(t, u, d)}.
     */
    static  net.mintern.functions.unary.checked.DblToNilE
    bind(ObjObjDblToNilE f, T t, U u) {
        return (d) -> f.call(t, u, d);
    }

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

    /**
     * Binds {@code (d)} to the end of {@code f}, returning a new function
     * of type {@code (T, U) -> void}.
     *
     * @param  the type of argument 1
     * @param  the type of argument 2
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param d argument 3
     * @return a new function {@code (T t, U u) -> void} that calls
     *      {@code f.call(t, u, d)}.
     */
    static  net.mintern.functions.binary.checked.ObjObjToNilE
    rbind(ObjObjDblToNilE f, double d) {
        return (t, u) -> f.call(t, u, d);
    }

    /**
     * Binds {@code (d)} to the end of {@code this}, returning a new function
     * of type {@code (T, U) -> void}.
     *
     * @param d argument 3
     * @return a new function {@code (T t, U u) -> void} that calls
     *      {@code this.call(t, u, d)}.
     */
    default net.mintern.functions.binary.checked.ObjObjToNilE rbind(double d) {
        return ObjObjDblToNilE.rbind(this, d);
    }

    /**
     * Binds {@code (t, u, d)} to {@code f}, returning a new function
     * of type {@code () -> void}.
     *
     * @param  the type of argument 1
     * @param  the type of argument 2
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param t argument 1
     * @param u argument 2
     * @param d argument 3
     * @return a new function {@code () -> void} that calls
     *      {@code f.call(t, u, d)}.
     */
    static  net.mintern.functions.nullary.checked.NilToNilE
    bind(ObjObjDblToNilE f, T t, U u, double d) {
        return () -> f.call(t, u, d);
    }

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