Interface ToIntFunctionEx<T>

  • Type Parameters:
    T - the type of the input to the function
    All Superinterfaces:, java.util.function.ToIntFunction<T>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface ToIntFunctionEx<T>
    extends java.util.function.ToIntFunction<T>,
    Serializable variant of java.util.function.ToIntFunction which declares checked exception.
    • Method Detail

      • applyAsIntEx

        int applyAsIntEx​(T value)
                  throws java.lang.Exception
        Exception-declaring version of ToIntFunction.applyAsInt(T).
        java.lang.Exception - in case of any exceptional case
      • applyAsInt

        default int applyAsInt​(T value)
        Specified by:
        applyAsInt in interface java.util.function.ToIntFunction<T>