Пример #1
0
 /**
  * Immediately {@link ThrowingSupplier#get get} a result from the given {@code supplier}, and if
  * needed, convert any thrown exceptions to unckecked.
  *
  * @param supplier The {@link ThrowingSupplier}.
  * @return the result.
  */
 public static <T> T getUnchecked(ThrowingSupplier<T, ? extends Throwable> supplier) {
   return supplier.asUnchecked().get();
 }