Interface ShortConsumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface to apply an operation to a single
short
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(short value) Apply this operation tovalue
.default ShortConsumer
andThen
(@NotNull ShortConsumer after) Return a composed ShortConsumer that appliesthis
operation followed byafter
.
-
Method Details
-
accept
void accept(short value) Apply this operation tovalue
.- Parameters:
value
- Theshort
to operate one
-
andThen
Return a composed ShortConsumer that appliesthis
operation followed byafter
.- Parameters:
after
- The ShortConsumer to apply after applyingthis
- Returns:
- A composed ShortConsumer that applies
this
followed byafter
-