T
- see Supplier
@FunctionalInterface public interface ThrowingSupplier<T>
Supplier
that allows throwing checked exceptions. ThrowingSupplier
is usually implemented by a lambda and passed to CheckedExceptionHandler.supplier(ThrowingSupplier)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
T |
get()
Variation of Supplier.get() that allows throwing checked exceptions.
|
T get() throws Throwable
Supplier.get()
that allows throwing checked exceptions.
Supplier.get()
Throwable
- if unable to complete
CheckedExceptionHandler.supplier(ThrowingSupplier)
, Supplier.get()
Copyright © 2017–2020 Robert Važan. All rights reserved.