Interface CheckedToIntFunction<S,E extends Exception>

Type Parameters:
S - argument-type
E - exception-type that can be thrown during applyAsInt
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CheckedToIntFunction<S,E extends Exception>
Like ToIntFunction but can also thrown an exception.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    applyAsInt(S parameter)
    Calls the function.
  • Method Details

    • applyAsInt

      int applyAsInt(S parameter) throws E
      Calls the function.
      Parameters:
      parameter - parameter object.
      Returns:
      return-value.
      Throws:
      E - an exception that may be thrown.