Package onl.ycode.stormify
Interface SafeSupplier<T>
- Type Parameters:
T
- The type of the value.
public interface SafeSupplier<T>
A functional interface that can be used to get a value, and throw an exception if an error occurs.
-
Method Summary
-
Method Details
-
get
Get a value.- Returns:
- The value.
- Throws:
Throwable
- If an error occurs.
-