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 ofLongConsumer
that allows throwing checked exceptions.ThrowingLongConsumer
is 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 void
accept(long value)
Variation ofLongConsumer.accept(long)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
accept
void accept(long value) throws Throwable
Variation 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)
-
-