public class ProgressTracker extends Object
Modifier and Type | Field and Description |
---|---|
private ArrayList<WeakReference<Progress>> |
progresses
Set of potentially active progresses.
|
Constructor and Description |
---|
ProgressTracker() |
Modifier and Type | Method and Description |
---|---|
void |
addProgress(Progress p)
Add a new Progress to the tracker.
|
Collection<Progress> |
getProgresses()
Get a list of progresses tracked.
|
Collection<Progress> |
removeCompleted()
Remove completed progresses.
|
private ArrayList<WeakReference<Progress>> progresses
public Collection<Progress> getProgresses()
public void addProgress(Progress p)
p
- Progresspublic Collection<Progress> removeCompleted()