public abstract static class RestrictionTracker.Progress
extends java.lang.Object
RestrictionTracker.HasProgress.getProgress()
for details.Constructor and Description |
---|
Progress() |
Modifier and Type | Method and Description |
---|---|
static RestrictionTracker.Progress |
from(double workCompleted,
double workRemaining)
A representation for the amount of known completed and remaining work.
|
abstract double |
getWorkCompleted()
The known amount of completed work.
|
abstract double |
getWorkRemaining()
The known amount of work remaining.
|
public static RestrictionTracker.Progress from(double workCompleted, double workRemaining)
RestrictionTracker.HasProgress.getProgress()
for details.workCompleted
- Must be >= 0
.workRemaining
- Must be >= 0
.public abstract double getWorkCompleted()
public abstract double getWorkRemaining()