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

com.capitalone.dashboard.model.deploy.Environment Maven / Gradle / Ivy

There is a newer version: 3.4.53
Show newest version
package com.capitalone.dashboard.model.deploy;

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

public class Environment {
    private final String name;
    private final String url;
    private final List units = new ArrayList<>();

    public Environment(String name, String url) {
        this.name = name;
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public String getUrl() {
        return url;
    }

    public List getUnits() {
        return units;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Environment that = (Environment) o;
        return name.equals(that.name);
    }

    @Override
    public int hashCode() {
        return name.hashCode();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy