WeightedSelectorBuilder add()

in concurrency-loadbalancer-core/src/main/java/com/uber/concurrency/loadbalancer/ArrayConcurrencyLoadBalancer.java [240:245]


            WeightedSelectorBuilder<T> add(T t, int weight) {
                weight = Math.abs(weight);
                weightMap.put(totalWeight, t);
                totalWeight += weight;
                return this;
            }