Module com.machinezoo.noexception
Interface ThrowingLongSupplier
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingLongSupplier
Variation ofLongSupplier
that allows throwing checked exceptions.ThrowingLongSupplier
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromLongSupplier(ThrowingLongSupplier)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getAsLong()
Variation ofLongSupplier.getAsLong()
that allows throwing checked exceptions.
-
-
-
Method Detail
-
getAsLong
long getAsLong() throws Throwable
Variation ofLongSupplier.getAsLong()
that allows throwing checked exceptions.- Returns:
-
see
LongSupplier.getAsLong()
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromLongSupplier(ThrowingLongSupplier)
,LongSupplier.getAsLong()
-
-