addWeightWithSkip

abstract fun addWeightWithSkip(weights: List<HDWeight>, precision: Int? = null): Completable

Add new weights and skip all already existed weights.

If any weight is less or equal than current active goal weight, than the goal will be updated to GoalStatus.REACHED status.

All weights must be between ValidatorTool.WEIGHT_BOTTOM and ValidatorTool.WEIGHT_TOP. If weight is out of this bounds than IllegalArgumentException will be emitted.

precision will be used to round weights and check does it complete weight goal.

Return

Completable that completes when weight is added

See also

Parameters

weights

list of weights

precision

count of significant digits after point (optional)