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.
|
static <V,T extends Throwable> Supplier<V> asSupplier(@NotNull @NotNull ThrowingSupplier<V,T> throwingSupplier)
@NotNull V get() throws T extends Throwable, InvalidMarshallableException
InvalidMarshallableException - if the object created is not validT extends ThrowableCopyright © 2024. All rights reserved.