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

ternary.checked.LongIntLongToBoolE 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, long) -> boolean}.
 *
 * @param  the {@code Exception} type that the operation may throw
 */
@FunctionalInterface
public interface LongIntLongToBoolE {

    /**
     * Performs this operation.
     *
     * @param l1 argument 1
     * @param i argument 2
     * @param l3 argument 3
     * @return the result of the operation
     * @throws E if the operation cannot be completed
     */
    boolean call(long l1, int i, long l3) throws E;

    /**
     * Binds {@code (l1)} to the beginning of {@code f}, returning a new function
     * of type {@code (int, long) -> boolean}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param l1 argument 1
     * @return a new function {@code (int i, long l3) -> boolean} that calls
     *      {@code f.call(l1, i, l3)} and returns the result.
     */
    static  net.mintern.functions.binary.checked.IntLongToBoolE
    bind(LongIntLongToBoolE f, long l1) {
        return (i, l3) -> f.call(l1, i, l3);
    }

    /**
     * Binds {@code (l1)} to the beginning of {@code this}, returning a new function
     * of type {@code (int, long) -> boolean}.
     *
     * @param l1 argument 1
     * @return a new function {@code (int i, long l3) -> boolean} that calls
     *      {@code this.call(l1, i, l3)} and returns the result.
     */
    default net.mintern.functions.binary.checked.IntLongToBoolE bind(long l1) {
        return LongIntLongToBoolE.bind(this, l1);
    }

    /**
     * Binds {@code (i, l3)} to the end of {@code f}, returning a new function
     * of type {@code (long) -> boolean}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param i argument 2
     * @param l3 argument 3
     * @return a new function {@code (long l1) -> boolean} that calls
     *      {@code f.call(l1, i, l3)} and returns the result.
     */
    static  net.mintern.functions.unary.checked.LongToBoolE
    rbind(LongIntLongToBoolE f, int i, long l3) {
        return (l1) -> f.call(l1, i, l3);
    }

    /**
     * Binds {@code (i, l3)} to the end of {@code this}, returning a new function
     * of type {@code (long) -> boolean}.
     *
     * @param i argument 2
     * @param l3 argument 3
     * @return a new function {@code (long l1) -> boolean} that calls
     *      {@code this.call(l1, i, l3)} and returns the result.
     */
    default net.mintern.functions.unary.checked.LongToBoolE rbind(int i, long l3) {
        return LongIntLongToBoolE.rbind(this, i, l3);
    }

    /**
     * Binds {@code (l1, i)} to the beginning of {@code f}, returning a new function
     * of type {@code (long) -> boolean}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param l1 argument 1
     * @param i argument 2
     * @return a new function {@code (long l3) -> boolean} that calls
     *      {@code f.call(l1, i, l3)} and returns the result.
     */
    static  net.mintern.functions.unary.checked.LongToBoolE
    bind(LongIntLongToBoolE f, long l1, int i) {
        return (l3) -> f.call(l1, i, l3);
    }

    /**
     * Binds {@code (l1, i)} to the beginning of {@code this}, returning a new function
     * of type {@code (long) -> boolean}.
     *
     * @param l1 argument 1
     * @param i argument 2
     * @return a new function {@code (long l3) -> boolean} that calls
     *      {@code this.call(l1, i, l3)} and returns the result.
     */
    default net.mintern.functions.unary.checked.LongToBoolE bind(long l1, int i) {
        return LongIntLongToBoolE.bind(this, l1, i);
    }

    /**
     * Binds {@code (l3)} to the end of {@code f}, returning a new function
     * of type {@code (long, int) -> boolean}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param l3 argument 3
     * @return a new function {@code (long l1, int i) -> boolean} that calls
     *      {@code f.call(l1, i, l3)} and returns the result.
     */
    static  net.mintern.functions.binary.checked.LongIntToBoolE
    rbind(LongIntLongToBoolE f, long l3) {
        return (l1, i) -> f.call(l1, i, l3);
    }

    /**
     * Binds {@code (l3)} to the end of {@code this}, returning a new function
     * of type {@code (long, int) -> boolean}.
     *
     * @param l3 argument 3
     * @return a new function {@code (long l1, int i) -> boolean} that calls
     *      {@code this.call(l1, i, l3)} and returns the result.
     */
    default net.mintern.functions.binary.checked.LongIntToBoolE rbind(long l3) {
        return LongIntLongToBoolE.rbind(this, l3);
    }

    /**
     * Binds {@code (l1, i, l3)} to {@code f}, returning a new function
     * of type {@code () -> boolean}.
     *
     * @param  the {@code Exception} type that the operation may throw
     * @param f the unbound function
     * @param l1 argument 1
     * @param i argument 2
     * @param l3 argument 3
     * @return a new function {@code () -> boolean} that calls
     *      {@code f.call(l1, i, l3)} and returns the result.
     */
    static  net.mintern.functions.nullary.checked.NilToBoolE
    bind(LongIntLongToBoolE f, long l1, int i, long l3) {
        return () -> f.call(l1, i, l3);
    }

    /**
     * Binds {@code (l1, i, l3)} to {@code this}, returning a new function
     * of type {@code () -> boolean}.
     *
     * @param l1 argument 1
     * @param i argument 2
     * @param l3 argument 3
     * @return a new function {@code () -> boolean} that calls
     *      {@code this.call(l1, i, l3)} and returns the result.
     */
    default net.mintern.functions.nullary.checked.NilToBoolE bind(long l1, int i, long l3) {
        return LongIntLongToBoolE.bind(this, l1, i, l3);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy