Class ProgressUpdateEvent.ProgressDetail

java.lang.Object
org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail
Enclosing class:
ProgressUpdateEvent

public static class ProgressUpdateEvent.ProgressDetail extends Object
Provide details about the progress of a task.
  • Constructor Details

    • ProgressDetail

      public ProgressDetail(Long current, Long total)
  • Method Details

    • getCurrent

      @Deprecated(since="3.3.7", forRemoval=true) public int getCurrent()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 3.3.7 for removal in 3.5.0 in favor of asPercentage()
      Return the current progress value.
      Returns:
      the current progress
    • getTotal

      @Deprecated(since="3.3.7", forRemoval=true) public int getTotal()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 3.3.7 for removal in 3.5.0 in favor of asPercentage()
      Return the total progress possible value.
      Returns:
      the total progress possible
    • asPercentage

      public int asPercentage()
      Return the progress as a percentage.
      Returns:
      the progress percentage
      Since:
      3.3.7
    • isEmpty

      @Deprecated(since="3.3.7", forRemoval=true) public static boolean isEmpty(ProgressUpdateEvent.ProgressDetail progressDetail)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 3.3.7 for removal in 3.5.0
      Return if the progress detail is considered empty.
      Parameters:
      progressDetail - the progress detail to check
      Returns:
      if the progress detail is empty