com.atlassian.confluence.util
Class DefaultProgress
java.lang.Object
com.atlassian.confluence.util.DefaultProgress
- All Implemented Interfaces:
- Progress
public class DefaultProgress
- extends java.lang.Object
- implements Progress
Thread-safe class for tracking progress.
Avoids some of the issues with using atlassian-core's ProgressWrapper and ProgressMeter classes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultProgress
public DefaultProgress(int total)
DefaultProgress
public DefaultProgress(int initial,
int total)
getCount
public int getCount()
- Specified by:
getCount
in interface Progress
getTotal
public int getTotal()
- Specified by:
getTotal
in interface Progress
getPercentComplete
public int getPercentComplete()
- Specified by:
getPercentComplete
in interface Progress
increment
public int increment()
- Specified by:
increment
in interface Progress
increment
public int increment(int delta)
- Specified by:
increment
in interface Progress
Copyright © 2003-2013 Atlassian. All Rights Reserved.