Class ProgressImpl

java.lang.Object
com.atlassian.bitbucket.util.ProgressImpl
All Implemented Interfaces:
Progress, Serializable

public class ProgressImpl extends Object implements Progress, Serializable
A default immutable implementation of the Progress interface.
See Also:
  • Constructor Details

    • ProgressImpl

      public ProgressImpl(@Nonnull String message, @Nonnegative int percentage)
    • ProgressImpl

      public ProgressImpl(@Nonnull Progress progress)
  • Method Details

    • getMessage

      @Nonnull public String getMessage()
      Specified by:
      getMessage in interface Progress
      Returns:
      the message for the current progress.
    • getPercentage

      @Nonnegative public int getPercentage()
      Specified by:
      getPercentage in interface Progress
      Returns:
      the percentage complete of the associated task. Will always be an int between 0 and 100 (inclusive)
    • toString

      public String toString()
      Overrides:
      toString in class Object