/** * Sets or replaces all elements for {@link CChangelogType#releases() releases} list. * @param elements An iterable of releases elements * @return {@code this} builder for use in a chained invocation */ public final Builder setReleases(Iterable<? extends CRelease> elements) { this.releases.clear(); return addAllReleases(elements); }
/** * Sets or replaces all elements for {@link CChangelogType#releases() releases} list. * @param elements An iterable of releases elements * @return {@code this} builder for use in a chained invocation */ public final Builder setReleases(Iterable<? extends CRelease> elements) { this.releases.clear(); return addAllReleases(elements); }
/** * Fill a builder with attribute values from the provided {@code CChangelogType} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * Collection elements and entries will be added, not replaced. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(CChangelogType instance) { Objects.requireNonNull(instance, "instance"); setProject(instance.project()); addAllReleases(instance.releases()); putAllTicketSystems(instance.ticketSystems()); return this; }
/** * Fill a builder with attribute values from the provided {@code CChangelogType} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * Collection elements and entries will be added, not replaced. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(CChangelogType instance) { Objects.requireNonNull(instance, "instance"); setProject(instance.project()); addAllReleases(instance.releases()); putAllTicketSystems(instance.ticketSystems()); return this; }