Module iu.util
Package edu.iu

Interface UnsafeFunction<T,R>

Type Parameters:
T - Argument type
R - Return type
All Known Subinterfaces:
HttpResponseHandler<T>
All Known Implementing Classes:
IuParallelWorkloadController
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 UnsafeFunction<T,R>
Equivalent to Function, but may throw any exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T argument)
    Applies an argument to a function that uses unsafe code.
  • Method Details

    • apply

      R apply(T argument) throws Throwable
      Applies an argument to a function that uses unsafe code.
      Parameters:
      argument - The argument.
      Returns:
      The result.
      Throws:
      Throwable - If thrown by the unsafe code.