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.

@FunctionalInterface public interface ProgressBarRenderer
Renders a ProgressState into a string.
Since:
0.8.0
  • Method Summary

    Modifier and Type
    Method
    Description
    render(ProgressState progress, int maxLength)
    Renders the current progress bar state as a string to be shown by a consumer.
  • Method Details

    • render

      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 state
      maxLength - The maximum length as dictated by the consumer
      Returns:
      Rendered string to be consumed by the consumer