netflix.ocelli.selectors.ClientsAndWeights Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ocelli-core Show documentation
Show all versions of ocelli-core Show documentation
ocelli-core developed by Netflix
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