インタフェースの使用
org.nkjmlab.util.java.function.Try.ThrowableRunnable
Try.ThrowableRunnableを使用しているパッケージ
-
org.nkjmlab.util.java.functionでのTry.ThrowableRunnableの使用
Try.ThrowableRunnable型のパラメータを持つorg.nkjmlab.util.java.functionのメソッド修飾子とタイプメソッド説明static RunnableTry.createRunnable(Try.ThrowableRunnable onTry, Consumer<Exception> exceptionConsumer) static <X extends RuntimeException>
RunnableTry.createRunnableWithThrow(Try.ThrowableRunnable onTry, Function<Exception, ? extends X> exceptionThrower) static voidTry.runOrElseDo(Try.ThrowableRunnable onTry, Consumer<Exception> exceptionHandler) Tries to run and applies the exception handler if an exception occurs.static <T,X extends RuntimeException>
voidTry.runOrElseRethrow(Try.ThrowableRunnable onTry) static <T,X extends RuntimeException>
voidTry.runOrElseThrow(Try.ThrowableRunnable onTry, Function<Exception, ? extends X> exceptionThrower) Tries to run and applies the exception thrower if an exception occurs.