public class ProgressPrinter
extends java.lang.Object
Constructor and Description |
---|
ProgressPrinter(long numTicks,
long numDots,
long dotsPerLine) |
ProgressPrinter(long numTicks,
long numDots,
long dotsPerLine,
java.lang.String prefix) |
ProgressPrinter(long numTicks,
long numDots,
long dotsPerLine,
java.lang.String prefix,
java.lang.String postfix) |
Modifier and Type | Method and Description |
---|---|
void |
tick()
Informs the printer that you've completed one of the operations the user
is waiting on.
|
java.lang.String |
toString() |
public ProgressPrinter(long numTicks, long numDots, long dotsPerLine)
numTicks
- the number of operations that your application is completing
while printing dotsnumDots
- the number of dots to print to the consoledotsPerLine
- the number of dots per linepublic ProgressPrinter(long numTicks, long numDots, long dotsPerLine, java.lang.String prefix)
numTicks
- the number of operations that your application is completing
while printing dotsnumDots
- the number of dots to print to the consoledotsPerLine
- the number of dots per lineprefix
- a string to print before every line of dotspublic ProgressPrinter(long numTicks, long numDots, long dotsPerLine, java.lang.String prefix, java.lang.String postfix)
numTicks
- the number of operations that your application is completing
while printing dotsnumDots
- the number of dots to print to the consoledotsPerLine
- the number of dots per lineprefix
- a string to print before every line of dotspostfix
- a string to print after every line of dots