Interface LongConsumer
- All Known Implementing Classes:
LongSummaryStatistics
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(long value) Performs this operation onvalue.default LongConsumerandThen(LongConsumer after) This operation followed byafter, both given the same value.
-
Method Details
-
accept
void accept(long value) Performs this operation onvalue.- Parameters:
value- the input
-
andThen
This operation followed byafter, both given the same value. If this operation throws,afterdoes not run.- Parameters:
after- the operation to run next- Returns:
- the composed operation
-