Interface LongFunctionWithException<R,​E extends Throwable>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Public
    @FunctionalInterface
    public interface LongFunctionWithException<R,​E extends Throwable>
    Similar to LongFunction but can throw Exception.
    • Method Detail

      • apply

        R apply​(long value)
         throws E extends Throwable
        Applies this function to the given argument.
        Parameters:
        value - the function argument
        Returns:
        the function result
        Throws:
        E extends Throwable