Interface ThrowableFunction<T,​R,​E extends Throwable>

All Superinterfaces:
Function<T,​R>
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 ThrowableFunction<T,​R,​E extends Throwable>
extends Function<T,​R>
Author:
Collin Alpert
  • Method Summary

    Modifier and Type Method Description
    default R apply​(T t)
    Applies this function to the given argument.
    R run​(T t)  

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • run

      R run​(T t) throws E extends Throwable
      Throws:
      E extends Throwable
    • apply

      default R apply​(T t)
      Applies this function to the given argument.
      Specified by:
      apply in interface Function<T,​R>
      Parameters:
      t - the function argument
      Returns:
      the function result