public class NullProgressUpdater extends Object implements ProgressUpdater
ProgressUpdater doing nothing but forces a
crossvalidation that is used with an instance of this class to continue to
its end. | Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the supervision.
|
static NullProgressUpdater |
getImmutableInstance()
Returns a reference to the same
NullProgressUpdater that is
immutable. |
boolean |
isCancelled()
Specifies if the process is cancelled by the user.
|
void |
setMax(int max)
Sets the maximal value that will be set by
ProgressUpdater.setValue(int), so a
value of max indicates the end of the supervised method call. |
void |
setOffset()
After
setOffset() is called the current value
will be added to every value set by
setValue(int). |
void |
setValue(int value)
Sets the current value the supervised process has reached.
|
public static NullProgressUpdater getImmutableInstance()
NullProgressUpdater that is
immutable.NullProgressUpdater that
is immutable since all methods except isCancelled() are
not implemented. The method isCancelled() always returns
false to force the crossvalidation to continuepublic void setMax(int max)
ProgressUpdaterProgressUpdater.setValue(int), so a
value of max indicates the end of the supervised method call.setMax in interface ProgressUpdatermax - the maximal valuepublic void setValue(int value)
ProgressUpdatersetValue in interface ProgressUpdatervalue - the current valuepublic void close()
public void setOffset()
setOffset() is called the current value
will be added to every value set by
setValue(int).public boolean isCancelled()
ProgressUpdaterisCancelled in interface ProgressUpdatertrue if process was cancelled, false
otherwise