-
- 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.
@FunctionalInterface public interface ProgressBarRenderer
Renders aProgressState
into a string.- Since:
- 0.8.0
- Author:
- Tongfei Chen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
render(ProgressState progress, int maxLength)
Renders the current progress bar state as a string to be shown by a consumer.
-
-
-
Method Detail
-
render
java.lang.String render(ProgressState progress, int maxLength)
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
-
-