Package cli
Class ProgressBar
java.lang.Object
cli.ProgressBar
- All Implemented Interfaces:
TaskTracker
public class ProgressBar extends java.lang.Object implements TaskTracker
This class prints the progress of a task to standard output.
-
Method Summary
Modifier and Type Method Description voidcompleteJobs(int number)React to the completion ofnumberjobs.voidfinished()React to the completion of the entire task.voidstart()React to the starting of the entire task.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
start
public void start()Description copied from interface:TaskTrackerReact to the starting of the entire task.- Specified by:
startin interfaceTaskTracker
-
completeJobs
public void completeJobs(int number)Description copied from interface:TaskTrackerReact to the completion ofnumberjobs.- Specified by:
completeJobsin interfaceTaskTracker- Parameters:
number- The number of jobs to mark as completed.
-
finished
public void finished()Description copied from interface:TaskTrackerReact to the completion of the entire task.- Specified by:
finishedin interfaceTaskTracker
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-