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 Type
    Method
    Description
    int
    applyAsInt(T value)
    Applies this function to the given argument.
  • Method Details

    • applyAsInt

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