Repository navigation
Allow ProgressBarBuilder.setETAFunction to be used externally - #146
Conversation
ProgressState was package-private and setETAFunction's BiFunction includes ProgressState, preventing setETAFunction from being used outside of the package.
|
I noticed that ProgressBarRenderer#render also has ProgressState in its signature: But there isn't currently a way to set an alternate ProgressBarRenderer on the ProgressBarBuilder--only on two of the constructors on ProgressBar (both deprecated). |
|
I think a better option is to change the type of the @deejgregor : what is the use case where you want to specify an alternate |
+1. That sounds good. I see that most of the important fields in FWIW, the only things that I see which aren't currently exposed via
|
I was going to try to do a few things to trim space, most notably something like this in place of I realize now, a simpler way to do that would be to allow specifying a custom duration formatter. Or even extend the existing formatter to exclude if s < 3600 (although that would change the format for existing users). Here is what I'm working on BTW: OpenNMS/opennms#5322 |
ProgressState is package-private and setETAFunction's BiFunction includes ProgressState, preventing setETAFunction from being used outside of the package.
Reproducer:
Run this on the latest released version 0.9.4: