Package com._1c.g5.v8.dt.testing.compare
Class ResourcesConsumption.ResourcesConsumptionBuilder
- java.lang.Object
-
- com._1c.g5.v8.dt.testing.compare.ResourcesConsumption.ResourcesConsumptionBuilder
-
- Enclosing class:
- ResourcesConsumption
public static final class ResourcesConsumption.ResourcesConsumptionBuilder extends Object
Builder of resources consumption instance.
-
-
Constructor Summary
Constructors Constructor Description ResourcesConsumptionBuilder()
Constructs the builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcesConsumption
build()
Returns a new resources consumption object instantiated according to values set in the builder.ResourcesConsumption.ResourcesConsumptionBuilder
comparisonMemoryInMbs(long mbs)
Sets comparison memory in megabytes.ResourcesConsumption.ResourcesConsumptionBuilder
comparisonTimeInSeconds(long time)
Sets comparison time in seconds.ResourcesConsumption.ResourcesConsumptionBuilder
mergeMemoryInMbs(long mbs)
Sets merge memory in megabytes.ResourcesConsumption.ResourcesConsumptionBuilder
mergeTimeInSeconds(long time)
Sets merge time in seconds.
-
-
-
Method Detail
-
build
public ResourcesConsumption build()
Returns a new resources consumption object instantiated according to values set in the builder.- Returns:
- the new resources consumption object, never
null
-
comparisonTimeInSeconds
public ResourcesConsumption.ResourcesConsumptionBuilder comparisonTimeInSeconds(long time)
Sets comparison time in seconds.- Parameters:
time
- the comparison time in seconds- Returns:
- the builder itself, never
null
-
mergeTimeInSeconds
public ResourcesConsumption.ResourcesConsumptionBuilder mergeTimeInSeconds(long time)
Sets merge time in seconds.- Parameters:
time
- the merge time in seconds- Returns:
- the builder itself, never
null
-
comparisonMemoryInMbs
public ResourcesConsumption.ResourcesConsumptionBuilder comparisonMemoryInMbs(long mbs)
Sets comparison memory in megabytes.- Parameters:
mbs
- the comparison memory in megabytes- Returns:
- the builder itself, never
null
-
mergeMemoryInMbs
public ResourcesConsumption.ResourcesConsumptionBuilder mergeMemoryInMbs(long mbs)
Sets merge memory in megabytes.- Parameters:
mbs
- the merge memory in megabytes- Returns:
- the builder itself, never
null
-
-