インタフェースの使用
org.nkjmlab.util.java.function.Try.ThrowableSupplier
Try.ThrowableSupplierを使用しているパッケージ
-
org.nkjmlab.util.java.functionでのTry.ThrowableSupplierの使用
Try.ThrowableSupplier型のパラメータを持つorg.nkjmlab.util.java.functionのメソッド修飾子とタイプメソッド説明static <T> Supplier<T>Try.createSupplier(Try.ThrowableSupplier<T> onTry, Function<Exception, T> exceptionHandler) static <T,X extends RuntimeException>
Supplier<T>Try.createSupplierWithThrow(Try.ThrowableSupplier<T> onTry, Function<Exception, ? extends X> exceptionThrower) static <T> TTry.getOrElse(Try.ThrowableSupplier<T> onTry, T other) Tries to get a value or gets other value if an exception occurs.static <T,X extends RuntimeException>
TTry.getOrElseGet(Try.ThrowableSupplier<T> onTry, Function<Exception, T> ohterSupplier) Tries to get a value or get other value if an exception occurs..static <T> TTry.getOrElseNull(Try.ThrowableSupplier<T> onTry) Tries to get a value or gets null if an exception occurs.static <T,X extends RuntimeException>
TTry.getOrElseRethrow(Try.ThrowableSupplier<T> onTry) static <T,X extends RuntimeException>
TTry.getOrElseThrow(Try.ThrowableSupplier<T> onTry, Function<Exception, ? extends X> exceptionSupplier) Tries to get a value or throws an exception if an exception occurs.