return false; } else if (!repoGroup.equals(other.repoGroup)) { return false;
return false; } else if (!repoGroup.equals(other.repoGroup)) { return false;
/** * Removes association with a repo group, if it exists. If it does exist, the mapping that was removed is * returned; if the given repo group did not exist as one that is a associated to this repo, <code>null</code> is * returned. * * @param repoGroup the repo group to disassociate from this repo * * @return the mapping that was removed or <code>null</code> if the repo group was not associated with this repo */ public RepoRepoGroup removeRepoGroup(RepoGroup repoGroup) { if ((this.repoRepoGroups == null) || (repoGroup == null)) { return null; } RepoRepoGroup doomed = null; for (RepoRepoGroup rrg : this.repoRepoGroups) { if (repoGroup.equals(rrg.getRepoRepoGroupPK().getRepoGroup())) { doomed = rrg; break; } } if (doomed != null) { this.repoRepoGroups.remove(doomed); } return doomed; }