@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } final DeploymentGroup that = (DeploymentGroup) obj; if (jobId != null ? !jobId.equals(that.jobId) : that.jobId != null) { return false; } if (hostSelectors != null ? !hostSelectors.equals(that.hostSelectors) : that.hostSelectors != null) { return false; } if (name != null ? !name.equals(that.name) : that.name != null) { return false; } if (rolloutOptions != null ? !rolloutOptions.equals(that.rolloutOptions) : that.rolloutOptions != null) { return false; } if (reason != null ? !reason.equals(that.reason) : that.reason != null) { return false; } return true; }