return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
return false; } else if (!repo.equals(other.repo)) { return false;
/** * Removes the repo from this repo relationship, if it exists. If it does exist, the mapping that was removed is * returned; if the given repo did not did not belong to this repo relationship, <code>null</code> is * returned. * * @param repo the repo to remove from this repo relationship * * @return the mapping that was removed or <code>null</code> if the repo did not belong to this repo relationship */ public RepoRepoRelationship removeRepo(Repo repo) { if ((this.repoRepoRelationships == null) || (repo == null)) { return null; } RepoRepoRelationship doomed = null; for (RepoRepoRelationship rrr : this.repoRepoRelationships) { if (repo.equals(rrr.getRepoRepoRelationshipPK().getRepo())) { doomed = rrr; //repo.removeRepoRelationship(this); break; } } if (doomed != null) { this.repoRepoRelationships.remove(doomed); } return doomed; }
/** * Removes the repo from this repogroup, if it exists. If it does exist, the mapping that was removed is * returned; if the given repo did not did not belong to this repo group, <code>null</code> is * returned. * * @param repo the repo to remove from this repo group * * @return the mapping that was removed or <code>null</code> if the repo did not belong to this repo group */ public RepoRepoGroup removeRepo(Repo repo) { if ((this.repoRepoGroups == null) || (repo == null)) { return null; } RepoRepoGroup doomed = null; for (RepoRepoGroup rrg : this.repoRepoGroups) { if (repo.equals(rrg.getRepoRepoGroupPK().getRepo())) { doomed = rrg; repo.removeRepoGroup(this); break; } } if (doomed != null) { this.repoRepoGroups.remove(doomed); } return doomed; }
/** * Removes the repo from this content source, if it exists. If it does exist, the mapping that was removed is * returned; if the given repo did not exist as one that this content source is a member of, <code>null</code> is * returned. * * @param repo the repo to remove from this content source * * @return the mapping that was removed or <code>null</code> if the repo was not mapped to this content source */ public RepoContentSource removeRepo(Repo repo) { if ((this.repoContentSources == null) || (repo == null)) { return null; } RepoContentSource doomed = null; for (RepoContentSource ccs : this.repoContentSources) { if (repo.equals(ccs.getRepoContentSourcePK().getRepo())) { doomed = ccs; repo.removeContentSource(this); break; } } if (doomed != null) { this.repoContentSources.remove(doomed); } return doomed; }
/** * Removes the repo as one that this package version is related to. The mapping that was removed is returned; if * the given package version was not a member of the repo, <code>null</code> is returned. * * @param repo * * @return the mapping that was removed or <code>null</code> if this package version was not mapped to the given * repo */ public RepoPackageVersion removeRepo(Repo repo) { if ((this.repoPackageVersions == null) || (repo == null)) { return null; } RepoPackageVersion doomed = null; for (RepoPackageVersion cpv : this.repoPackageVersions) { if (repo.equals(cpv.getRepoPackageVersionPK().getRepo())) { doomed = cpv; repo.removePackageVersion(this); break; } } if (doomed != null) { this.repoPackageVersions.remove(doomed); } return doomed; }