Interface CheckedFunction<T,R>

Type Parameters:
T - the function argument type
R - the function result type
All Superinterfaces:
Function<T,R>

public interface CheckedFunction<T,R> extends Function<T,R>
A function interface that automatically wraps any exceptions.
Author:
Ramsey Gurley
  • Method Summary

    Modifier and Type
    Method
    Description
    applies(T arg)
    Same as apply except Exceptions may be thrown.
    default R
    apply(T arg)
     

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      default R apply(T arg)
      Specified by:
      apply in interface Function<T,R>
    • applies

      R applies(T arg) throws Exception
      Same as apply except Exceptions may be thrown.
      Parameters:
      arg - the function argument
      Returns:
      the function result
      Throws:
      Exception - an exception