类 ProgressUpdateEvent.ProgressDetail
java.lang.Object
org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail
- 封闭类:
ProgressUpdateEvent
Provide details about the progress of a task.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
Return the progress as a percentage.int
已过时, 待删除: 此 API 元素将从以后的版本中删除。int
getTotal()
已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.3.7 for removal in 3.5.0 in favor ofasPercentage()
static boolean
isEmpty
(ProgressUpdateEvent.ProgressDetail progressDetail) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.3.7 for removal in 3.5.0
-
构造器详细资料
-
ProgressDetail
-
-
方法详细资料
-
getCurrent
已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.3.7 for removal in 3.5.0 in favor ofasPercentage()
Return the current progress value.- 返回:
- the current progress
-
getTotal
已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.3.7 for removal in 3.5.0 in favor ofasPercentage()
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.0Return if the progress detail is considered empty.- 参数:
progressDetail
- the progress detail to check- 返回:
- if the progress detail is empty
-
asPercentage()