- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
LongSupplier
that allows for checked exceptions.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionlong
Gets a result.static LongSupplier
sneaky
(CheckedLongSupplier supplier) static LongSupplier
unchecked
(CheckedLongSupplier supplier) static LongSupplier
unchecked
(CheckedLongSupplier supplier, Consumer<Throwable> handler)
-
Method Details
-
getAsLong
Gets a result.- Returns:
- a result
- Throws:
Throwable
-
sneaky
-
unchecked
-
unchecked
-