public class EstimateDexWeightStep extends Object implements Step, java.util.function.Supplier<Integer>
| Constructor and Description |
|---|
EstimateDexWeightStep(ProjectFilesystem filesystem,
Path pathToJarOrClassesDirectory)
This uses an estimator that uses the size of the
.class file as the estimate. |
| Modifier and Type | Method and Description |
|---|---|
StepExecutionResult |
execute(ExecutionContext context) |
Integer |
get() |
String |
getDescription(ExecutionContext context) |
String |
getShortName() |
void |
setWeightEstimateForTesting(int weightEstimate) |
public EstimateDexWeightStep(ProjectFilesystem filesystem, Path pathToJarOrClassesDirectory)
.class file as the estimate. This
should be used when speed is more important than accuracy.public StepExecutionResult execute(ExecutionContext context) throws IOException
execute in interface StepIOExceptionpublic Integer get()
get in interface java.util.function.Supplier<Integer>public String getShortName()
getShortName in interface Steppublic String getDescription(ExecutionContext context)
getDescription in interface Steppublic void setWeightEstimateForTesting(int weightEstimate)