com.xyzwps.lib.dollar.function.ObjIntPredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xyzwps-dollar Show documentation
Show all versions of xyzwps-dollar Show documentation
A lodash-like, lazy and powerful java collection utils
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);
}