private CTicketSystem(String id, Iterable<? extends URI> uris) { this.id = Objects.requireNonNull(id, "id"); this.uris = createUnmodifiableList(false, createSafeList(uris, true, false)); }
private CTicketSystem(String id, Iterable<? extends URI> uris) { this.id = Objects.requireNonNull(id, "id"); this.uris = createUnmodifiableList(false, createSafeList(uris, true, false)); }
/** * Copy the current immutable object with elements that replace the content of {@link CTicketSystemType#uris() uris}. * @param elements The elements to set * @return A modified copy of {@code this} object */ public final CTicketSystem withUris(URI... elements) { List<URI> newValue = createUnmodifiableList(false, createSafeList(Arrays.asList(elements), true, false)); return new CTicketSystem(this, this.id, newValue); }
/** * Copy the current immutable object with elements that replace the content of {@link CTicketSystemType#uris() uris}. * @param elements The elements to set * @return A modified copy of {@code this} object */ public final CTicketSystem withUris(URI... elements) { List<URI> newValue = createUnmodifiableList(false, createSafeList(Arrays.asList(elements), true, false)); return new CTicketSystem(this, this.id, newValue); }
/** * Copy the current immutable object with elements that replace the content of {@link CTicketSystemType#uris() uris}. * A shallow reference equality check is used to prevent copying of the same value by returning {@code this}. * @param elements An iterable of uris elements to set * @return A modified copy of {@code this} object */ public final CTicketSystem withUris(Iterable<? extends URI> elements) { if (this.uris == elements) return this; List<URI> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return new CTicketSystem(this, this.id, newValue); }
/** * Copy the current immutable object with elements that replace the content of {@link CTicketSystemType#uris() uris}. * A shallow reference equality check is used to prevent copying of the same value by returning {@code this}. * @param elements An iterable of uris elements to set * @return A modified copy of {@code this} object */ public final CTicketSystem withUris(Iterable<? extends URI> elements) { if (this.uris == elements) return this; List<URI> newValue = createUnmodifiableList(false, createSafeList(elements, true, false)); return new CTicketSystem(this, this.id, newValue); }