Uses of Interface
oshi.util.ExceptionUtil.ThrowingSupplier
Packages that use ExceptionUtil.ThrowingSupplier
-
Uses of ExceptionUtil.ThrowingSupplier in oshi.util
Methods in oshi.util with parameters of type ExceptionUtil.ThrowingSupplierModifier and TypeMethodDescriptionstatic <T> Optional<T> ExceptionUtil.getOptional(ExceptionUtil.ThrowingSupplier<T> supplier, org.slf4j.Logger log, String msg) Executes the supplier, wrapping the result in anOptional.static <T> Optional<T> ExceptionUtil.getOptional(ExceptionUtil.ThrowingSupplier<T> supplier, org.slf4j.Logger log, org.slf4j.event.Level level, String msg) Executes the supplier, wrapping the result in anOptional.static <T> TExceptionUtil.getOrDefault(ExceptionUtil.ThrowingSupplier<T> supplier, T defaultValue) Executes the supplier, returning its result on success or the default value if anyThrowableis thrown.static <T> TExceptionUtil.getOrDefault(ExceptionUtil.ThrowingSupplier<T> supplier, T defaultValue, org.slf4j.Logger log, String msg) Executes the supplier, returning its result on success or the default value if anyThrowableis thrown.static <T> TExceptionUtil.getOrDefault(ExceptionUtil.ThrowingSupplier<T> supplier, T defaultValue, org.slf4j.Logger log, org.slf4j.event.Level level, String msg) Executes the supplier, returning its result on success or the default value if anyThrowableis thrown.