Class ProgressUpdateEvent.ProgressDetail
java.lang.Object
org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail
- Enclosing class:
- ProgressUpdateEvent
Provide details about the progress of a task.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the progress as a percentage.int
Deprecated, for removal: This API element is subject to removal in a future version.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 ofasPercentage()
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
-
Constructor Details
-
ProgressDetail
-
-
Method Details
-
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 ofasPercentage()
Return the current progress value.- Returns:
- the current progress
-
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 ofasPercentage()
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.0Return if the progress detail is considered empty.- Parameters:
progressDetail
- the progress detail to check- Returns:
- if the progress detail is empty
-
asPercentage()