インタフェースの使用
org.nkjmlab.util.java.function.Try.ThrowableFunction
Try.ThrowableFunctionを使用しているパッケージ
-
org.nkjmlab.util.java.functionでのTry.ThrowableFunctionの使用
Try.ThrowableFunction型のパラメータを持つorg.nkjmlab.util.java.functionのメソッド修飾子とタイプメソッド説明static <T,S> S Try.applyOrElse(Try.ThrowableFunction<T, S> onTry, T arg, S other) Tries to apply a value or gets other value if an exception occurs.static <T,R> Function<T, R> Try.createFunction(Try.ThrowableFunction<T, R> onTry, Function<Exception, R> exceptionHandler) static <T,R, X extends RuntimeException>
Function<T,R> Try.createFunctionWithThrow(Try.ThrowableFunction<T, R> onTry, Function<Exception, ? extends X> exceptionThrower)