T - the type of exception thrown by this supplier@FunctionalInterface public interface ThrowingLongSupplier<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 longerface
whose functional method is getAsLong().
| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable> |
asSupplier(@NotNull ThrowingLongSupplier<T> throwingSupplier)
Deprecated.
|
long |
getAsLong()
Gets a result.
|
@Deprecated static <T extends Throwable> LongSupplier asSupplier(@NotNull @NotNull ThrowingLongSupplier<T> throwingSupplier)
Copyright © 2023. All rights reserved.