You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ProgressBarBuilder()#setEtaFunction is pointless because all methods in ProgressState are package-private #147
setEtaFunction accepts a (BiFunction<ProgressState, Duration, Optional<Duration>>, but it's impossible to use ProgressState for consumers because everything there is package-private. setEtaFunction should either accept a Bifunction that provides objects that are actually usable, or ProgressState and its methods should become public.
See #146: I think a better way is to change setETAFunction so that it accepts BiFunction<ProgressBar, Duration, Optional<Duration>>. Let me know if you have any objections.
Activity
ctongfei commentedon Oct 4, 2022
Thanks @natanfudge ! My fault, will have to make that class public.
ctongfei commentedon Oct 4, 2022
See #146: I think a better way is to change
setETAFunctionso that it acceptsBiFunction<ProgressBar, Duration, Optional<Duration>>. Let me know if you have any objections.ctongfei commentedon Oct 10, 2022
Fixed in
0.9.5.