Package com.github.twitch4j.common.util
Class SneakySupplier<T>
java.lang.Object
com.github.twitch4j.common.util.SneakySupplier<T>
- Type Parameters:
T
- the return type of values provided by the supplier
- All Implemented Interfaces:
Supplier<T>
A supplier that can sneakily throw exceptions.
This class should be used sparingly (to avoid hackiness) and carefully (to ensure bubbled exceptions are properly handled).
-
Constructor Summary
ConstructorDescriptionSneakySupplier
(@NotNull Callable<T> callable) Creates a newSneakySupplier
instance. -
Method Summary