Interface ToIntFunction<T>
public interface ToIntFunction<T>
Represents a function that accepts one argument and produces an
int result.
Very simple and stupid interface for representing functions f(T) → int.-
Method Summary
Modifier and TypeMethodDescriptionintapplyAsInt(T value) Applies this function to the given argument.
-
Method Details
-
applyAsInt
Applies this function to the given argument.- Parameters:
value- the function argument- Returns:
- the function result
-