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