public ZStoreArgs weights(double... weights) {

        LettuceAssert.notNull(weights, "Weights must not be null");

        this.weights = new ArrayList<>(weights.length);

        for (double weight : weights) {
            this.weights.add(weight);
        }
        return this;
    }
public ZStoreArgs weights ( double ... weights ) { LettuceAssert . notNull ( weights , "Weights must not be null" ) ; this . weights = new ArrayList < > ( weights . length ) ; for ( double weight : weights ) { this . weights . add ( weight ) ; } return this ; }
Specify a multiplication factor for each input sorted set.

@param weights must not be {@literal null}.
@return {@code this} {@link ZStoreArgs}.