List of usage examples for com.google.common.collect Iterables addAll
public static <T> boolean addAll(Collection<T> addTo, Iterable<? extends T> elementsToAdd)
From source file:com.zimbra.soap.mail.type.XNameRule.java
public static List<XNameRuleInterface> toInterfaces(Iterable<XNameRule> params) { if (params == null) return null; List<XNameRuleInterface> newList = Lists.newArrayList(); Iterables.addAll(newList, params); return newList; }
From source file:com.zimbra.soap.admin.message.QueryWaitSetResponse.java
public void setWaitsets(Iterable<WaitSetInfo> waitsets) { this.waitsets.clear(); if (waitsets != null) { Iterables.addAll(this.waitsets, waitsets); }//ww w.ja va2 s. c om }
From source file:com.zimbra.soap.adminext.message.GetBulkIMAPImportTaskListResponse.java
public void setTasks(Iterable<BulkIMAPImportTaskInfo> tasks) { this.tasks.clear(); if (tasks != null) { Iterables.addAll(this.tasks, tasks); }// w w w . ja v a 2s .c o m }
From source file:com.zimbra.soap.admin.message.GetAllCalendarResourcesResponse.java
public void setCalendarResourceList(Iterable<CalendarResourceInfo> calResources) { this.calResources.clear(); if (calResources != null) { Iterables.addAll(this.calResources, calResources); }/*from w w w . j a v a2 s .c o m*/ }
From source file:com.zimbra.soap.account.message.GetShareInfoResponse.java
@Override public void setShares(Iterable<ShareInfo> shares) { this.shares.clear(); if (shares != null) { Iterables.addAll(this.shares, shares); }/*ww w . j av a 2 s . c o m*/ }
From source file:com.zimbra.soap.admin.message.GetAttributeInfoResponse.java
public void setAttrs(Iterable<AttributeDescription> attrs) { this.attrs.clear(); if (attrs != null) { Iterables.addAll(this.attrs, attrs); }// www .ja va 2 s . c om }
From source file:org.gitools.ui.app.actions.data.CreateBookmarkAction.java
public void run() { Heatmap heatmap = getHeatmap();//from w w w.j a v a 2s .c om List<String> rows = new ArrayList<String>(); List<String> columns = new ArrayList<String>(); Iterables.addAll(rows, heatmap.getRows()); Iterables.addAll(columns, heatmap.getColumns()); BookmarkEditPage page = new BookmarkEditPage(heatmap, new Bookmark("new Bookmark", rows, columns, getHeatmap().getLayers().getTopLayer().getId()), true); PageDialog dialog = new PageDialog(Application.get(), page); dialog.open(); if (dialog.isCancelled()) { return; } heatmap.getBookmarks().add(page.getBookmark()); Application.get().showNotification("Bookmark created."); }
From source file:com.zimbra.soap.admin.message.GetSMIMEConfigResponse.java
public void setConfigs(Iterable<SMIMEConfigInfo> configs) { this.configs.clear(); if (configs != null) { Iterables.addAll(this.configs, configs); }//from w ww .j av a 2s . co m }
From source file:com.zimbra.soap.admin.type.AdminCustomMetadata.java
public static List<CustomMetadataInterface> toInterfaces(Iterable<AdminCustomMetadata> params) { if (params == null) return null; List<CustomMetadataInterface> newList = Lists.newArrayList(); Iterables.addAll(newList, params); return Collections.unmodifiableList(newList); }
From source file:com.zimbra.soap.account.message.GetAppSpecificPasswordsResponse.java
public void setAppSpecificPasswords(Iterable<AppSpecificPasswordData> appSpecificPasswords) { this.appSpecificPasswords.clear(); if (appSpecificPasswords != null) { Iterables.addAll(this.appSpecificPasswords, appSpecificPasswords); }//from w ww . jav a 2 s. com }