Uses of Interface
com.kingsrook.qqq.backend.core.utils.lambdas.UnsafeSupplier
Packages that use UnsafeSupplier
Package
Description
-
Uses of UnsafeSupplier in com.kingsrook.qqq.backend.core.actions.async
Methods in com.kingsrook.qqq.backend.core.actions.async with parameters of type UnsafeSupplierModifier and TypeMethodDescriptionint
AsyncRecordPipeLoop.run
(String jobName, Integer recordLimit, RecordPipe recordPipe, UnsafeFunction<AsyncJobCallback, ? extends Serializable, QException> supplier, UnsafeSupplier<Integer, QException> consumer) Run an async-record-pipe-loop. -
Uses of UnsafeSupplier in com.kingsrook.qqq.backend.core.logging
Methods in com.kingsrook.qqq.backend.core.logging with parameters of type UnsafeSupplier -
Uses of UnsafeSupplier in com.kingsrook.qqq.backend.core.utils
Methods in com.kingsrook.qqq.backend.core.utils with parameters of type UnsafeSupplierModifier and TypeMethodDescriptionstatic boolean
ObjectUtils.ifCan
(UnsafeSupplier<Boolean, ? extends Throwable> supplier) Utility to test a chained unsafe expression CAN get to the end and return true.static <T> T
ObjectUtils.tryAndRequireNonNullElse
(UnsafeSupplier<T, ?> supplier, T defaultIfThrew) Like Objects.requireNonNullElse, only use an (unsafe) supplier as the first arg, and if it throws or returns null, then return the 2nd argstatic <T> T
ObjectUtils.tryElse
(UnsafeSupplier<T, ?> supplier, T defaultIfThrew) Like Objects.requireNonNullElse, only use an (unsafe) supplier as the first arg, and only if it throws, return the 2nd arg