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:jflowmap.es_agg.EdgeSegment.java
public EdgeSegment(FPoint a, FPoint b, double weight, Iterable<SegmentedEdge> parents) { this(a, b, weight); Iterables.addAll(this.parents, parents); }
From source file:com.zimbra.soap.admin.type.ExportAndDeleteMailboxSpec.java
public void setItems(Iterable<ExportAndDeleteItemSpec> items) { this.items.clear(); if (items != null) { Iterables.addAll(this.items, items); }//w ww . j a v a 2 s .co m }
From source file:com.zimbra.soap.admin.message.GetAdminSavedSearchesRequest.java
public void setSearches(Iterable<NamedElement> searches) { this.searches.clear(); if (searches != null) { Iterables.addAll(this.searches, searches); }//from ww w.j ava 2 s . co m }
From source file:org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableUnkeyedListNodeBuilder.java
protected ImmutableUnkeyedListNodeBuilder(final ImmutableUnkeyedListNode node) { this.nodeIdentifier = node.getIdentifier(); this.value = new LinkedList<>(); Iterables.addAll(value, node.getValue()); this.dirty = true; }
From source file:com.zimbra.soap.account.message.ModifyZimletPrefsRequest.java
public void setZimlets(Iterable<ModifyZimletPrefsSpec> zimlets) { this.zimlets.clear(); if (zimlets != null) { Iterables.addAll(this.zimlets, zimlets); }/*from w w w. j av a2s.co m*/ }
From source file:com.zimbra.soap.admin.message.GetLoggerStatsResponse.java
public void setHostNames(Iterable<HostStats> hostNames) { this.hostNames.clear(); if (hostNames != null) { Iterables.addAll(this.hostNames, hostNames); }/*from www. ja v a 2 s. c o m*/ }
From source file:com.zimbra.soap.mail.message.GetMsgMetadataResponse.java
public void setMessages(Iterable<MessageSummary> messages) { this.messages.clear(); if (messages != null) { Iterables.addAll(this.messages, messages); }/*from www.ja v a 2 s. co m*/ }
From source file:com.zimbra.soap.jaxb.WrappedRequired.java
public void setEntries(Iterable<StringAttribIntValue> entries) { this.entries.clear(); if (entries != null) { Iterables.addAll(this.entries, entries); }//from w ww . j a v a 2 s . c om }
From source file:com.zimbra.soap.admin.type.QueueQueryField.java
public void setMatches(Iterable<ValueAttrib> matches) { this.matches.clear(); if (matches != null) { Iterables.addAll(this.matches, matches); }/*from www.j a v a2 s .c om*/ }
From source file:com.gnapse.common.inflector.RuleBasedInflector.java
/** * Creates a new {@code RuleBasedInflector} with the given set of rules. The rules in the given * list are expected to be listed from higher to lower priority. * * @param rules the list of rules to use in this {@code Inflector}. *///from ww w. j a va2 s . c o m public RuleBasedInflector(Iterable<Rule> rules) { Iterables.addAll(this.rules, rules); }