Closed seanf closed 3 years ago
Another option would be to expose ProgressBarBuilder.getInitialMax()
, and only call setInitialMax()
if the current value is still -1. For consistency, this could be done for Iterable
and Spliterator
too.
Thanks @seanf ! This is excellent. This will be released in the next version.
When wrapping an array and customising the
ProgressBar
with aProgressBarBuilder
, the size of the array is not used. This change brings arrays in line withIterable
andSpliterator
, which do use the size when known.