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

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

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy