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

mesosphere.metronome.client.model.v1.Placement Maven / Gradle / Ivy

There is a newer version: 0.6.3
Show newest version
package mesosphere.metronome.client.model.v1;

import java.util.ArrayList;
import java.util.List;

import mesosphere.client.common.ModelUtils;

public class Placement {
    private List constraints;

    public List getConstraints() {
        return constraints;
    }

    public void addConstraint(Constraint constraint) {
        if (constraints == null) {
            constraints = new ArrayList<>();
        }
        this.constraints.add(constraint);
    }

    public void setConstraints(List constraints) {
        this.constraints = constraints;
    }

    @Override
    public String toString() {
        return ModelUtils.toString(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy