com.xyzwps.lib.dollar.function.ObjIntFunction 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 ObjIntFunction} represents a function accepting two arguments,
* the first one is an object and the second is an int primitive value.
*
* @param first argument type of the function
* @param return type of the function
*/
@FunctionalInterface
public interface ObjIntFunction {
/**
* Applies this function to the given argument.
*
* @param element the first argument
* @param index the second argument
* @return the function return value
*/
R apply(T element, int index);
}