com.annimon.stream.function.ToIntFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stream Show documentation
Show all versions of stream Show documentation
Stream API from Java 8 rewritten on iterators for Java 7 and below
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);
}