/** * Returns a copy of this association. * This implementation returns a <em>shallow</em> copy: * the association {@linkplain #getValues() values} are <strong>not</strong> cloned. * * @return a clone of this association. * @throws CloneNotSupportedException if this association can not be cloned. */ @Override @SuppressWarnings("unchecked") public MultiValuedAssociation clone() throws CloneNotSupportedException { final MultiValuedAssociation clone = (MultiValuedAssociation) super.clone(); clone.values = (CheckedArrayList<AbstractFeature>) clone.values.clone(); return clone; }
/** * Returns a copy of this association. * This implementation returns a <em>shallow</em> copy: * the association {@linkplain #getValues() values} are <strong>not</strong> cloned. * * @return a clone of this association. * @throws CloneNotSupportedException if this association can not be cloned. */ @Override @SuppressWarnings("unchecked") public MultiValuedAssociation clone() throws CloneNotSupportedException { final MultiValuedAssociation clone = (MultiValuedAssociation) super.clone(); clone.values = (CheckedArrayList<AbstractFeature>) clone.values.clone(); return clone; }
/** * Returns a copy of this attribute. * This implementation returns a <em>shallow</em> copy: * the attribute {@linkplain #getValues() values} are <strong>not</strong> cloned. * * @return a clone of this attribute. * @throws CloneNotSupportedException if this attribute can not be cloned. */ @Override @SuppressWarnings("unchecked") public AbstractAttribute<V> clone() throws CloneNotSupportedException { final MultiValuedAttribute<V> clone = (MultiValuedAttribute<V>) super.clone(); clone.values = (CheckedArrayList<V>) clone.values.clone(); return clone; }
/** * Returns a copy of this attribute. * This implementation returns a <em>shallow</em> copy: * the attribute {@linkplain #getValues() values} are <strong>not</strong> cloned. * * @return a clone of this attribute. * @throws CloneNotSupportedException if this attribute can not be cloned. */ @Override @SuppressWarnings("unchecked") public AbstractAttribute<V> clone() throws CloneNotSupportedException { final MultiValuedAttribute<V> clone = (MultiValuedAttribute<V>) super.clone(); clone.values = (CheckedArrayList<V>) clone.values.clone(); return clone; }