Interface CheckedFunction<T,​R>

  • All Superinterfaces:
    java.util.function.Function<T,​R>

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

      • apply

        default R apply​(T arg)
        Specified by:
        apply in interface java.util.function.Function<T,​R>
      • applies

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