All Downloads are FREE. Search and download functionalities are using the official Maven repository.

netflix.ocelli.selectors.ClientsAndWeights Maven / Gradle / Ivy

There is a newer version: 0.1.0-rc.2
Show newest version
package netflix.ocelli.selectors;

import java.util.List;

public class ClientsAndWeights {
    private final List clients;
    private final List weights;
    
    public ClientsAndWeights(List clients, List weights) {
        this.clients = clients;
        this.weights = weights;
    }

    public List getClients() {
        return clients;
    }

    public List getWeights() {
        return weights;
    }

    public boolean isEmpty() {
        return clients.isEmpty();
    }

    public int getTotalWeights() {
        return weights.get(weights.size()-1);
    }

    @Override
    public String toString() {
        return "ClientsAndWeights [clients=" + clients + ", weights=" + weights
                + "]";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy