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
ConstructorsConstructorDescriptionProgressImpl(Progress progress) ProgressImpl(String message, int percentage) -
Method Summary
-
Constructor Details
-
ProgressImpl
-
ProgressImpl
-
-
Method Details
-
getMessage
- Specified by:
getMessagein interfaceProgress- Returns:
- the message for the current progress.
-
getPercentage
@Nonnegative public int getPercentage()- Specified by:
getPercentagein interfaceProgress- Returns:
- the percentage complete of the associated task. Will always be an
intbetween 0 and 100 (inclusive)
-
toString
-