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

com.annimon.stream.function.ToIntFunction Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package com.annimon.stream.function;

/**
 * Represents a function which produces an {@code int}-valued result from input argument.
 *
 * @param  the type of the input of the function
 * @see Function
 */
public interface ToIntFunction {

    /**
     * Applies this function to the given argument.
     *
     * @param t  an argument
     * @return the function result
     */
    int applyAsInt(T t);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy