Interface CheckedToDoubleFunction<T,E extends Exception>

Type Parameters:
T - the type of the first argument to the function
E - exception-type that can be thrown during applyAsDouble
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 CheckedToDoubleFunction<T,E extends Exception>
Like ToDoubleFunction but can also thrown an exception.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Applies this function to the given arguments.
  • Method Details

    • applyAsDouble

      double applyAsDouble(T t) throws E
      Applies this function to the given arguments.
      Parameters:
      t - the function argument.
      Returns:
      the function result.
      Throws:
      E - if an error occurs.