Module com.machinezoo.noexception
Interface ThrowingLongConsumer
-
- 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 ThrowingLongConsumer
Variation ofLongConsumerthat allows throwing checked exceptions.ThrowingLongConsumeris usually implemented by a lambda and passed toCheckedExceptionHandler.fromLongConsumer(ThrowingLongConsumer). See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(long value)Variation ofLongConsumer.accept(long)that allows throwing checked exceptions.
-
-
-
Method Detail
-
accept
void accept(long value) throws ThrowableVariation ofLongConsumer.accept(long)that allows throwing checked exceptions.- Parameters:
-
value- seeLongConsumer.accept(long) - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromLongConsumer(ThrowingLongConsumer),LongConsumer.accept(long)
-
-