/** * Adds all of the entries from this map to the existing descriptor's * metadata. None of the keys in the map may have the '=' character * * @param metadata The non-null but possibly empty list of fields * to add to the metadata map */ public synchronized void addMetadata(Map<String, List<String>> metadata) { if (metadatas == null) metadatas = new LinkedHashMap<String, List<String>>(); metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadata)); }
/** * Adds all of the entries from this map to the existing descriptor's * metadata. None of the keys in the map may have the '=' character * * @param metadata The non-null but possibly empty list of fields * to add to the metadata map */ public synchronized void addMetadata(Map<String, List<String>> metadata) { if (metadatas == null) metadatas = new LinkedHashMap<String, List<String>>(); metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadata)); }
/** * Adds all of the entries from this map to the existing descriptor's * metadata. None of the keys in the map may have the '=' character * * @param metadata The non-null but possibly empty list of fields * to add to the metadata map */ public synchronized void addMetadata(Map<String, List<String>> metadata) { if (metadatas == null) metadatas = new LinkedHashMap<String, List<String>>(); metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadata)); }
/** * Adds all of the entries from this map to the existing descriptor's * metadata. None of the keys in the map may have the '=' character * * @param metadata The non-null but possibly empty list of fields * to add to the metadata map */ public synchronized void addMetadata(Map<String, List<String>> metadata) { if (metadatas == null) metadatas = new LinkedHashMap<String, List<String>>(); metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadata)); }
/** * Sets the metadata of this DescriptorImpl to exactly the set * of metadata in the incoming map. Any previous metadata values * will be removed. A deep copy of the incoming map will be made, * so it is safe to use the input map after use of this API * * @param metadata The non-null metadata that this descriptor * should have */ public synchronized void setMetadata(Map<String, List<String>> metadata) { if (metadatas == null) { metadatas = new LinkedHashMap<String, List<String>>(); } else { metadatas.clear(); } metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadata)); }
/** * Sets the metadata of this DescriptorImpl to exactly the set * of metadata in the incoming map. Any previous metadata values * will be removed. A deep copy of the incoming map will be made, * so it is safe to use the input map after use of this API * * @param metadata The non-null metadata that this descriptor * should have */ public synchronized void setMetadata(Map<String, List<String>> metadata) { if (metadatas == null) { metadatas = new LinkedHashMap<String, List<String>>(); } else { metadatas.clear(); } metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadata)); }
/** * Sets the metadata of this DescriptorImpl to exactly the set * of metadata in the incoming map. Any previous metadata values * will be removed. A deep copy of the incoming map will be made, * so it is safe to use the input map after use of this API * * @param metadata The non-null metadata that this descriptor * should have */ public synchronized void setMetadata(Map<String, List<String>> metadata) { if (metadatas == null) { metadatas = new LinkedHashMap<String, List<String>>(); } else { metadatas.clear(); } metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadata)); }
/** * Sets the metadata of this DescriptorImpl to exactly the set * of metadata in the incoming map. Any previous metadata values * will be removed. A deep copy of the incoming map will be made, * so it is safe to use the input map after use of this API * * @param metadata The non-null metadata that this descriptor * should have */ public synchronized void setMetadata(Map<String, List<String>> metadata) { if (metadatas == null) { metadatas = new LinkedHashMap<String, List<String>>(); } else { metadatas.clear(); } metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadata)); }
if (metadatas != null && !metadatas.isEmpty()) { this.metadatas = new LinkedHashMap<String, List<String>>(); this.metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadatas));
if (metadatas != null && !metadatas.isEmpty()) { this.metadatas = new LinkedHashMap<String, List<String>>(); this.metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadatas));
if (metadatas != null && !metadatas.isEmpty()) { this.metadatas = new LinkedHashMap<String, List<String>>(); this.metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadatas));
if (metadatas != null && !metadatas.isEmpty()) { this.metadatas = new LinkedHashMap<String, List<String>>(); this.metadatas.putAll(ReflectionHelper.deepCopyMetadata(metadatas));
metadatas.putAll(ReflectionHelper.deepCopyMetadata(copyMe.getMetadata()));
metadatas.putAll(ReflectionHelper.deepCopyMetadata(copyMe.getMetadata()));
metadatas.putAll(ReflectionHelper.deepCopyMetadata(copyMe.getMetadata()));
metadatas.putAll(ReflectionHelper.deepCopyMetadata(copyMe.getMetadata()));