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 Detail

      • applyAsInt

        int applyAsInt​(T value)
        Applies this function to the given argument.
        Parameters:
        value - the function argument
        Returns:
        the function result