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

ternary.checked.LongIntObjToNilE Maven / Gradle / Ivy

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Binds {@code (l, i, v)} to {@code f}, returning a new function
     * of type {@code () -> void}.
     *
     * @param  the type of argument 3
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param l argument 1
     * @param i argument 2
     * @param v argument 3
     * @return a new function {@code () -> void} that calls
     *      {@code f.call(l, i, v)}.
     */
    static  net.mintern.functions.nullary.checked.NilToNilE
    bind(LongIntObjToNilE f, long l, int i, V v) {
        return () -> f.call(l, i, v);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy