类 ProgressUpdateEvent.ProgressDetail

java.lang.Object
org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail
封闭类:
ProgressUpdateEvent

public static class ProgressUpdateEvent.ProgressDetail extends Object
Provide details about the progress of a task.
  • 构造器详细资料

    • ProgressDetail

      public ProgressDetail(Long current, Long total)
  • 方法详细资料

    • getCurrent

      @Deprecated(since="3.3.7", forRemoval=true) public int getCurrent()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      since 3.3.7 for removal in 3.5.0 in favor of asPercentage()
      Return the current progress value.
      返回:
      the current progress
    • getTotal

      @Deprecated(since="3.3.7", forRemoval=true) public int getTotal()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      since 3.3.7 for removal in 3.5.0 in favor of asPercentage()
      Return the total progress possible value.
      返回:
      the total progress possible
    • asPercentage

      public int asPercentage()
      Return the progress as a percentage.
      返回:
      the progress percentage
      从以下版本开始:
      3.3.7
    • isEmpty

      @Deprecated(since="3.3.7", forRemoval=true) public static boolean isEmpty(ProgressUpdateEvent.ProgressDetail progressDetail)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      since 3.3.7 for removal in 3.5.0
      Return if the progress detail is considered empty.
      参数:
      progressDetail - the progress detail to check
      返回:
      if the progress detail is empty