Package com.atlassian.bitbucket.util
Class ProgressImpl
java.lang.Object
com.atlassian.bitbucket.util.ProgressImpl
- All Implemented Interfaces:
Progress
,Serializable
A default immutable implementation of the
Progress
interface.- See Also:
-
Constructor Summary
ConstructorDescriptionProgressImpl
(Progress progress) ProgressImpl
(String message, int percentage) -
Method Summary
-
Constructor Details
-
ProgressImpl
-
ProgressImpl
-
-
Method Details
-
getMessage
- Specified by:
getMessage
in interfaceProgress
- Returns:
- the message for the current progress.
-
getPercentage
@Nonnegative public int getPercentage()- Specified by:
getPercentage
in interfaceProgress
- Returns:
- the percentage complete of the associated task. Will always be an
int
between 0 and 100 (inclusive)
-
toString
-