public static final class FactorTracker.Builder
extends java.lang.Object
FactorTracker object.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FactorTracker |
build()
Builds a
FactorTracker block. |
FactorTracker.Builder |
optMaxUpdates(int maxUpdates)
Sets the maximum number of updates after which the value should remain constant.
|
FactorTracker.Builder |
optMinValue(float min)
Sets the minimum value.
|
FactorTracker.Builder |
setBaseValue(float baseValue)
Sets the initial value after no steps.
|
FactorTracker.Builder |
setFactor(float factor)
Sets the value of the multiplicative factor.
|
public FactorTracker.Builder setBaseValue(float baseValue)
baseValue - the initial valueBuilderpublic FactorTracker.Builder setFactor(float factor)
factor - the value of the multiplicative factorBuilderpublic FactorTracker.Builder optMinValue(float min)
This is equivalent to the max updates. Only one can be set.
min - the minimum valueBuilderpublic FactorTracker.Builder optMaxUpdates(int maxUpdates)
maxUpdates - the maximum number of updates after which the value should remain
constantBuilderpublic FactorTracker build()
FactorTracker block.FactorTracker block