/** * Directly assign this package version to the given repo. * * @param repo * * @return the mapping that was added */ public RepoPackageVersion addRepo(Repo repo) { if (this.repoPackageVersions == null) { this.repoPackageVersions = new HashSet<RepoPackageVersion>(); } RepoPackageVersion mapping = new RepoPackageVersion(repo, this); this.repoPackageVersions.add(mapping); repo.addPackageVersion(this); return mapping; }