Interface ThrowableFunction<T,R>

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

public interface ThrowableFunction<T,R> extends Function<T,R>
Function but returns null if there is an exception
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    apply(T t)
     
    Apply with throwable

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

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

      R applySafe(T t) throws Throwable
      Apply with throwable
      Parameters:
      t - the input
      Returns:
      the result
      Throws:
      Throwable - the exception