T - the type of exception thrown by this supplier@FunctionalInterface public interface ThrowingIntSupplier<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 getAsInt().
| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable> |
asSupplier(@NotNull ThrowingIntSupplier<T> throwingSupplier)
Deprecated.
|
int |
getAsInt()
Gets a result.
|
@Deprecated static <T extends Throwable> IntSupplier asSupplier(@NotNull @NotNull ThrowingIntSupplier<T> throwingSupplier)
Copyright © 2023. All rights reserved.