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 ofLongSupplierthat allows throwing checked exceptions.ThrowingLongSupplieris 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 longgetAsLong()Variation ofLongSupplier.getAsLong()that allows throwing checked exceptions.
-
-
-
Method Detail
-
getAsLong
long getAsLong() throws ThrowableVariation ofLongSupplier.getAsLong()that allows throwing checked exceptions.- Returns:
-
see
LongSupplier.getAsLong() - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromLongSupplier(ThrowingLongSupplier),LongSupplier.getAsLong()
-
-