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

com.jelastic.api.development.persistence.ApplicationsPool Maven / Gradle / Ivy

The newest version!
package com.jelastic.api.development.persistence;

import java.io.Serializable;
import java.util.Set;
import java.util.TreeSet;

/**
 *
 * @author Ruslan Sinitskiy
 */
public class ApplicationsPool implements Serializable {

    private int id;
    private String name;
    private User owner;
    private Set applications = new TreeSet();

    public Set getApplications() {
        return applications;
    }

    public void setApplications(Set applications) {
        this.applications = applications;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User getOwner() {
        return owner;
    }

    public void setOwner(User owner) {
        this.owner = owner;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        final ApplicationsPool other = (ApplicationsPool) obj;
        if ((this.name == null) ? (other.getName() != null) : !this.name.equals(other.getName())) {
            return false;
        }
        if (this.owner != other.getOwner() && (this.owner == null || !this.owner.equals(other.getOwner()))) {
            return false;
        }
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy