public final boolean addRelease(scrum.server.release.Release release) { if (release == null) throw new IllegalArgumentException("release == null"); boolean added = this.releasesIds.add(release.getId()); if (added) updateLastModified(); if (added) fireModified("releases+=" + release); return added; }
public final boolean removeRelease(scrum.server.release.Release release) { if (release == null) throw new IllegalArgumentException("release == null"); if (this.releasesIds == null) return false; boolean removed = this.releasesIds.remove(release.getId()); if (removed) updateLastModified(); if (removed) fireModified("releases-=" + release); return removed; }
public final boolean addReleases(Collection<scrum.server.release.Release> releases) { if (releases == null) throw new IllegalArgumentException("releases == null"); boolean added = false; for (scrum.server.release.Release release : releases) { added = added | this.releasesIds.add(release.getId()); } return added; }
public final boolean containsRelease(scrum.server.release.Release release) { if (release == null) return false; return this.releasesIds.contains(release.getId()); }