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