Example usage for com.google.common.collect Iterables addAll

List of usage examples for com.google.common.collect Iterables addAll

Introduction

In this page you can find the example usage for com.google.common.collect Iterables addAll.

Prototype

public static <T> boolean addAll(Collection<T> addTo, Iterable<? extends T> elementsToAdd) 

Source Link

Document

Adds all elements in iterable to collection .

Usage

From source file:com.zimbra.soap.admin.message.GetAdminSavedSearchesResponse.java

public void setSearches(Iterable<NamedValue> searches) {
    this.searches.clear();
    if (searches != null) {
        Iterables.addAll(this.searches, searches);
    }// w  w  w.  ja  v a 2  s.  co  m
}

From source file:com.zimbra.soap.admin.type.VoiceProviderInfo.java

public void setAttrs(Iterable<UCServiceAttribute> attrs) {
    this.attrs.clear();
    if (attrs != null) {
        Iterables.addAll(this.attrs, attrs);
    }/*  w w  w  .j a va 2  s  . com*/
}

From source file:com.zimbra.soap.admin.type.StatsValueWrapper.java

public void setStats(Iterable<NamedElement> stats) {
    this.stats.clear();
    if (stats != null) {
        Iterables.addAll(this.stats, stats);
    }/*  ww w  .  j  a  v a 2  s .  c o m*/
}

From source file:org.jboss.hal.core.finder.FinderColumnStorage.java

Set<String> pinnedItems() {
    Set<String> items = new HashSet<>();
    if (storage != null) {
        String pinnedItems = storage.getItem(this.pinnedId);
        if (pinnedItems != null) {
            //noinspection ResultOfMethodCallIgnored
            Iterables.addAll(items, Splitter.on(',').split(pinnedItems));
        }//from w  ww.  ja  v a 2 s . co m
    }
    return items;
}

From source file:org.jclouds.azure.storage.domain.internal.BoundedTreeSet.java

public BoundedTreeSet(Iterable<T> contents, URI url, String prefix, String marker, Integer maxResults,
        String nextMarker) {//from www.  j a v a2 s.  c  om
    Iterables.addAll(this, contents);
    this.url = url;
    this.prefix = prefix;
    this.nextMarker = nextMarker;
    this.maxResults = maxResults;
    this.marker = marker;
}

From source file:com.zimbra.soap.mail.type.MailCustomMetadata.java

public static List<CustomMetadataInterface> toInterfaces(Iterable<MailCustomMetadata> 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.admin.message.GetAdminConsoleUICompResponse.java

public void setValues(Iterable<InheritedFlaggedValue> values) {
    this.values.clear();
    if (values != null) {
        Iterables.addAll(this.values, values);
    }/*from ww w  .  j  a  va 2s . co  m*/
}

From source file:com.zimbra.soap.voice.message.GetVoiceFolderResponse.java

public void setPhones(Iterable<VoiceFolderInfo> phones) {
    this.phones.clear();
    if (phones != null) {
        Iterables.addAll(this.phones, phones);
    }//from w  w w .  j  av  a2 s  .c  om
}

From source file:ec.demetra.xml.calendars.DayAdapters.java

public void load() {
    Iterable<DayAdapter> all = ServiceLoader.load(DayAdapter.class);
    Iterables.addAll(adapters, all);
}

From source file:com.zimbra.soap.mail.message.GetSpellDictionariesResponse.java

public void setDictionaries(Iterable<String> dictionaries) {
    this.dictionaries.clear();
    if (dictionaries != null) {
        Iterables.addAll(this.dictionaries, dictionaries);
    }//from  w  w  w  .j  av a2  s .c om
}