/** * add a value to the alias property collection * * @param alias * Objects of the following type are allowed in the list: {@link Alias} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public ResourceMap addToAlias(final Alias alias) { this.getAlias().add(alias); return this; }
/** * add a value to the alias property collection * * @param alias * Objects of the following type are allowed in the list: {@link Alias} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public ResourceMap addToAlias(final Alias alias) { this.getAlias().add(alias); return this; }
/** * Creates a new instance of {@link Alias} and adds it to alias. * This method is a short version for: * <code> * Alias alias = new Alias(); * this.getAlias().add(alias); </code> * * */ public Alias createAndAddAlias() { Alias newValue = new Alias(); this.getAlias().add(newValue); return newValue; }
/** * Creates a new instance of {@link Alias} and adds it to alias. * This method is a short version for: * <code> * Alias alias = new Alias(); * this.getAlias().add(alias); </code> * * */ public Alias createAndAddAlias() { Alias newValue = new Alias(); this.getAlias().add(newValue); return newValue; }
@Override public ResourceMap clone() { ResourceMap copy; copy = ((ResourceMap) super.clone()); copy.alias = new ArrayList<Alias>((getAlias().size())); for (Alias iter: alias) { copy.alias.add(iter.clone()); } copy.resourceMapSimpleExtension = new ArrayList<Object>((getResourceMapSimpleExtension().size())); for (Object iter: resourceMapSimpleExtension) { copy.resourceMapSimpleExtension.add(iter); } copy.resourceMapObjectExtension = new ArrayList<AbstractObject>((getResourceMapObjectExtension().size())); for (AbstractObject iter: resourceMapObjectExtension) { copy.resourceMapObjectExtension.add(iter.clone()); } return copy; }
@Override public ResourceMap clone() { ResourceMap copy; copy = ((ResourceMap) super.clone()); copy.alias = new ArrayList<Alias>((getAlias().size())); for (Alias iter: alias) { copy.alias.add(iter.clone()); } copy.resourceMapSimpleExtension = new ArrayList<Object>((getResourceMapSimpleExtension().size())); for (Object iter: resourceMapSimpleExtension) { copy.resourceMapSimpleExtension.add(iter); } copy.resourceMapObjectExtension = new ArrayList<AbstractObject>((getResourceMapObjectExtension().size())); for (AbstractObject iter: resourceMapObjectExtension) { copy.resourceMapObjectExtension.add(iter.clone()); } return copy; }