V
- the type of results supplied by this supplierT
- the type of exception thrown by this supplier@FunctionalInterface public interface ThrowingSupplier<V,T extends Throwable>
Represents a supplier of results which might throw an Exception
There is no requirement that a new or distinct result be returned each time the supplier is invoked.
This is a functional interface
whose functional method is get()
.
Modifier and Type | Method and Description |
---|---|
static <V,T extends Throwable> |
asSupplier(@NotNull ThrowingSupplier<V,T> throwingSupplier) |
V |
get()
Gets a result.
|
Copyright © 2020. All rights reserved.