Interface ThrowingFunction<T,R>

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 ThrowingFunction<T,R> extends Function<T,R>
  • Method Summary

    Modifier and Type
    Method
    Description
    Performs this operation on the given argument.
    default R
    apply(T t)
    Deprecated.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      @Deprecated default R apply(T t)
      Deprecated.
      Specified by:
      apply in interface Function<T,R>
    • acceptThrows

      R acceptThrows(T t) throws Exception
      Performs this operation on the given argument.
      Parameters:
      t - the input argument
      Throws:
      Throwable - when the underlying apply throws
      Exception