public interface ProgressBar
| Modifier and Type | Interface and Description |
|---|---|
static class |
ProgressBar.NullProgressBar
A progress bar implementation that does nothing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Finish the progress bar.
|
boolean |
isFinished()
Check if the progress bar has been finished.
|
default void |
step(java.lang.Class<?> clazz)
Advance one step.
|
default void |
step(java.lang.Class<?> clazz,
java.lang.String message)
Advance one step.
|
void |
step(java.lang.String message)
Advance one step.
|
default void |
step(java.lang.String message,
java.lang.Class<?> clazz)
Advance one step.
|
static java.lang.String |
toStringMod(java.lang.Class<?> clazz) |
void step(java.lang.String message)
message - The message to show for the current step.java.lang.IllegalStateException - If finish() has been called.void finish()
boolean isFinished()
default void step(java.lang.Class<?> clazz)
ProgressBar.step(state + ": " + clazz)clazz - The mod classjava.lang.IllegalStateException - If finish() has been called.default void step(java.lang.String message,
java.lang.Class<?> clazz)
ProgressBar.step(message + ": " + clazz)message - The message to display before clazzclazz - The mod classjava.lang.IllegalStateException - If finish() has been called.default void step(java.lang.Class<?> clazz,
java.lang.String message)
ProgressBar.step(clazz + ": " + message)message - The message to display before clazzclazz - The mod classjava.lang.IllegalStateException - If finish() has been called.static java.lang.String toStringMod(java.lang.Class<?> clazz)