Interface DoubleConsumer
- All Known Implementing Classes:
DoubleSummaryStatistics
- 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(double value) Performs this operation onvalue.default DoubleConsumerandThen(DoubleConsumer after) This operation followed byafter, both given the same value.
-
Method Details
-
accept
void accept(double 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
-