Interface ThrowingSupplier<T,E extends Throwable>
- Type Parameters:
T
- The type of value returned.E
- The type of value thrown when it is not possible to obtain the value.
public interface ThrowingSupplier<T,E extends Throwable>
The
ThrowingSupplier
represents a supplier of a value, of type T
which,
when failing, throws an exception of type E
.-
Method Summary
-
Method Details
-
get
Gets the value.- Returns:
- The value, possibly
null
. - Throws:
E
- When it is not possible to obtain the value.
-