Interface ProgressBarRenderer
- All Known Implementing Classes:
DefaultProgressBarRenderer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Renders a
ProgressState into a string.- Since:
- 0.8.0
-
Method Summary
Modifier and TypeMethodDescriptionrender(ProgressState progress, int maxLength) Renders the current progress bar state as a string to be shown by a consumer.
-
Method Details
-
render
Renders the current progress bar state as a string to be shown by a consumer.- Parameters:
progress- The current progress bar statemaxLength- The maximum length as dictated by the consumer- Returns:
- Rendered string to be consumed by the consumer
-