Uses of Interface
io.blt.util.functional.ThrowingSupplier
Packages that use ThrowingSupplier
-
Uses of ThrowingSupplier in io.blt.util
Methods in io.blt.util with parameters of type ThrowingSupplierModifier and TypeMethodDescriptionstatic <T,E extends Throwable>
TObj.orElseGet(T value, ThrowingSupplier<T, E> supplier) Returnsvalueif non-null, else invokes and returns the result ofsupplier.static <T,E extends Throwable>
TObj.orElseOnException(ThrowingSupplier<T, E> supplier, T defaultValue) Invokes and returns the result ofsupplierif no exception is thrown, else returnsdefaultValue.