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

com.xyzwps.lib.dollar.function.ObjIntPredicate Maven / Gradle / Ivy

The newest version!
package com.xyzwps.lib.dollar.function;

/**
 * {@link ObjIntPredicate} represents a function accepting two arguments,
 * the first one is an object and the second is an int primitive value.
 * This function returns a boolean value.
 *
 * @param  the first argument type of the predicate
 */
@FunctionalInterface
public interface ObjIntPredicate {

    /**
     * Evaluates this predicate on the given argument.
     *
     * @param element the first argument
     * @param index   the second argument
     * @return {@code true} if the arguments matches the predicate, otherwise {@code false}
     */
    boolean test(E element, int index);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy