/** * Removes all the metadata items associated with this object, then adds all the items * in the provided map. After performing this operation, the metadata list will contain * only those items in the provided map. * * @param metadata * metadata items to add. */ public void replaceAllMetadata(Map<String, Object> metadata) { this.metadata.clear(); this.addAllMetadata(metadata); }
/** * Removes all the metadata items associated with this object, then adds all the items * in the provided map. After performing this operation, the metadata list will contain * only those items in the provided map. * * @param metadata * metadata items to add. */ public void replaceAllMetadata(Map<String, Object> metadata) { this.metadata.clear(); this.addAllMetadata(metadata); }