Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added function to ProgressBar.java #53

Closed
wants to merge 1 commit into from
Closed

Added function to ProgressBar.java #53

wants to merge 1 commit into from

Conversation

Cyb0rk
Copy link

@Cyb0rk Cyb0rk commented Aug 13, 2019

Added the option to initzialize via Taskname, Initial value, Progessbar Style and update interval

Added the option to initzialize via Taskname, Initial value, Progessbar Style and update interval
@ctongfei
Copy link
Owner

I've decided not to add new constructors -- they are considered a bad design, and are only kept for backward compatibility reasons. You could instead use ProgressBarBuilder with the Java builder pattern:

val pb = new ProgressBarBuilder()
  .setTaskName(taskName)
  .setInitialMax(initialMax)
  .setStyle(style)
  .setUpdateIntervalMillis(time)
  .build()

@ctongfei ctongfei closed this Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants