Package com.nuix.superutilities.misc
Class BoundedProgressInfo
- java.lang.Object
-
- com.nuix.superutilities.misc.ProgressInfo
-
- com.nuix.superutilities.misc.BoundedProgressInfo
-
public class BoundedProgressInfo extends ProgressInfo
Represents progress of an operation which has a bounded value, that is, we know what progress value is considered maximum/done.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
maximum
The maximum progress value-
Fields inherited from class com.nuix.superutilities.misc.ProgressInfo
current, stage
-
-
Constructor Summary
Constructors Constructor Description BoundedProgressInfo(java.lang.String stage, long current, long maximum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
percentageComplete()
Provides a percentage completed value by dividing double value of current by double value of maximum.java.lang.String
toString()
-
-
-
Method Detail
-
percentageComplete
public double percentageComplete()
Provides a percentage completed value by dividing double value of current by double value of maximum.- Returns:
- A double value representing percentage complete
-
toString
public java.lang.String toString()
- Overrides:
toString
in classProgressInfo
-
-