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.GetAllCosResponse.java

public GetAllCosResponse setCosList(Iterable<CosInfo> cosList) {
    this.cosList.clear();
    if (cosList != null) {
        Iterables.addAll(this.cosList, cosList);
    }//from   www.java  2  s. c om
    return this;
}

From source file:com.android.tools.idea.uibuilder.actions.SelectSiblingsAction.java

@Override
public void actionPerformed(AnActionEvent e) {
    if (myModel.isEmpty()) {
        return;//from w ww.  j a  v a 2  s.  com
    }
    Map<NlComponent, List<NlComponent>> map = NlModel.groupSiblings(myModel.getSelection());
    List<NlComponent> allSiblings = Lists.newArrayList();
    for (NlComponent parent : map.keySet()) {
        Iterables.addAll(allSiblings, parent.getChildren());
    }
    myModel.setSelection(allSiblings);
}

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

public void setProperties(Iterable<AdminZimletProperty> properties) {
    this.properties.clear();
    if (properties != null) {
        Iterables.addAll(this.properties, properties);
    }// w  w  w.ja  v  a  2  s .  c o  m
}

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

public void setLDAPentries(Iterable<LDAPEntryInfo> LDAPentries) {
    this.LDAPentries.clear();
    if (LDAPentries != null) {
        Iterables.addAll(this.LDAPentries, LDAPentries);
    }/*from ww  w .  j  av a2 s  .c o  m*/
}

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

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

From source file:com.zimbra.soap.account.type.AccountCustomMetadata.java

public static List<CustomMetadataInterface> toInterfaces(Iterable<AccountCustomMetadata> 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.GetApplianceHSMFSResponse.java

public void setFileSystems(Iterable<HsmFileSystemInfo> fileSystems) {
    this.fileSystems.clear();
    if (fileSystems != null) {
        Iterables.addAll(this.fileSystems, fileSystems);
    }/*from  w w  w .ja  v a  2s . c o  m*/
}

From source file:com.zimbra.soap.account.type.AccountZimletGlobalConfigInfo.java

public void setProperties(Iterable<AccountZimletProperty> properties) {
    this.properties.clear();
    if (properties != null) {
        Iterables.addAll(this.properties, properties);
    }//from   ww w. j  av a  2  s  .c o m
}

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

public void setKeys(Iterable<String> keys) {
    this.keys.clear();
    if (keys != null) {
        Iterables.addAll(this.keys, keys);
    }//w  w  w  .j  a va  2s . c om
}

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

public void setAccountList(Iterable<AccountInfo> accounts) {
    this.accountList.clear();
    if (accounts != null) {
        Iterables.addAll(this.accountList, accounts);
    }/*from  w  w w . ja v a  2 s. co m*/
}