/** * Gets the value of the artifacts property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the artifacts property. * * <p> * For example, to add a new item, do as follows: * <pre> * getArtifacts().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ArtifactDTO } * * */ public List<ArtifactDTO> getArtifacts() { if (artifacts == null) { artifacts = new UniqueList<ArtifactDTO>(); } return this.artifacts; }
@Override public void add(final int index, final E element) { if (!contains(element)) { unique.add(element); delegate.add(index, element); } }
@Override public E set(final int index, final E element) { if (!contains(element)) { unique.add(element); return delegate.set(index, element); } return null; }
@Override public void add(final int index, final E element) { if (!contains(element)) { unique.add(element); delegate.add(index, element); } }
/** * Gets the value of the artifacts property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the artifacts property. * * <p> * For example, to add a new item, do as follows: * <pre> * getArtifacts().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ArtifactDTO } * * */ public List<ArtifactDTO> getArtifacts() { if (artifacts == null) { artifacts = new UniqueList<ArtifactDTO>(); } return this.artifacts; }
@Override public E set(final int index, final E element) { if (!contains(element)) { unique.add(element); return delegate.set(index, element); } return null; }