/** * Sets or replaces all elements for {@link CReleaseType#items() items} list. * @param elements An iterable of items elements * @return {@code this} builder for use in a chained invocation */ public final Builder setItems(Iterable<? extends CItem> elements) { this.items.clear(); return addAllItems(elements); }
/** * Sets or replaces all elements for {@link CReleaseType#items() items} list. * @param elements An iterable of items elements * @return {@code this} builder for use in a chained invocation */ public final Builder setItems(Iterable<? extends CItem> elements) { this.items.clear(); return addAllItems(elements); }
/** * Fill a builder with attribute values from the provided {@code CReleaseType} 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(CReleaseType instance) { Objects.requireNonNull(instance, "instance"); setDate(instance.date()); addAllItems(instance.items()); setTicketSystemID(instance.ticketSystemID()); setVersion(instance.version()); return this; }
/** * Fill a builder with attribute values from the provided {@code CReleaseType} 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(CReleaseType instance) { Objects.requireNonNull(instance, "instance"); setDate(instance.date()); addAllItems(instance.items()); setTicketSystemID(instance.ticketSystemID()); setVersion(instance.version()); return this; }