public class EstimatedProgressMeter extends Object
Constructor and Description |
---|
EstimatedProgressMeter(int estimatedTotal) |
Modifier and Type | Method and Description |
---|---|
void |
complete()
Sets the percent complete of this progress meter to 100%, regardless of where the progress is currently up to.
|
int |
getCount() |
int |
getEstimatedTotal() |
int |
getPercentageComplete() |
int |
incrementCount()
Increases the current count or progress by one.
|
void |
setEstimatedTotal(int estimatedTotal)
Sets the estimatedTotal.
|
public EstimatedProgressMeter(int estimatedTotal)
estimatedTotal
- the estimated totalIllegalArgumentException
- if estimatedTotal is less than zero.public int incrementCount()
public int getPercentageComplete()
public void complete()
public int getCount()
public int getEstimatedTotal()
public void setEstimatedTotal(int estimatedTotal)
estimatedTotal
- the estimated totalIllegalArgumentException
- if estimatedTotal is less than zero.IllegalStateException
- if this is called after progress has started (that is, incrementCount()
has been called at least once)Copyright © 2003–2021 Atlassian. All rights reserved.