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

public void setZimlets(Iterable<ZimletInfo> zimlets) {
    this.zimlets.clear();
    if (zimlets != null) {
        Iterables.addAll(this.zimlets, zimlets);
    }//ww w .  j a  v a2s.  c o  m
}

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

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

From source file:com.google.devtools.build.skyframe.RecordingDifferencer.java

/**
 * Store the given values for invalidation.
 */
public void invalidate(Iterable<SkyKey> values) {
    Iterables.addAll(valuesToInvalidate, values);
}

From source file:org.jclouds.azureblob.domain.internal.HashSetListBlobsResponse.java

public HashSetListBlobsResponse(Iterable<BlobProperties> contents, URI url, String prefix, String marker,
        Integer maxResults, String nextMarker, String delimiter, Iterable<String> blobPrefixes) {
    super(contents, url, prefix, marker, maxResults, nextMarker);
    this.delimiter = delimiter;
    Iterables.addAll(this.blobPrefixes, blobPrefixes);
}

From source file:com.zimbra.soap.voice.type.CallLogItem.java

public void setCallParties(Iterable<CallLogCallParty> callParties) {
    this.callParties.clear();
    if (callParties != null) {
        Iterables.addAll(this.callParties, callParties);
    }//w  w w  . j a v  a 2s.c  om
}

From source file:org.jclouds.ec2.domain.AvailabilityZoneInfo.java

public AvailabilityZoneInfo(String zone, String zoneState, String region, Iterable<String> messages) {
    this.zone = checkNotNull(zone, "zone");
    this.state = checkNotNull(zoneState, "zoneState");
    this.region = checkNotNull(region, "region");
    Iterables.addAll(this.messages, checkNotNull(messages, "messages"));
}

From source file:org.cloudsmith.graph.elements.Graph.java

protected Graph(IGraph that) {
    super(that);// w ww.  j  a  v  a 2s. co  m
    edges = new ArrayList<IEdge>();
    Iterables.addAll(edges, that.getEdges());

    vertices = new ArrayList<IVertex>();
    Iterables.addAll(vertices, that.getVertices());

    subgraphs = new ArrayList<ISubGraph>();
    Iterables.addAll(subgraphs, that.getSubgraphs());
}

From source file:org.xacml4j.v30.spi.pdp.RequestContextHandlerChain.java

public RequestContextHandlerChain(Iterable<RequestContextHandler> handlers) {
    this.handlers = new CopyOnWriteArrayList<RequestContextHandler>();
    Iterables.addAll(this.handlers, handlers);
    RequestContextHandler prev = null;/* w  w  w . j  av a 2  s. c  o m*/
    for (RequestContextHandler h : handlers) {
        if (prev == null) {
            prev = h;
            continue;
        }
        prev.setNext(h);
        prev = h;
    }
}

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

public void setBrowseDatas(Iterable<BrowseData> browseDatas) {
    this.browseDatas.clear();
    if (browseDatas != null) {
        Iterables.addAll(this.browseDatas, browseDatas);
    }/* w w  w.  j a v a2  s.co m*/
}

From source file:com.zimbra.soap.account.message.GetAvailableLocalesResponse.java

public void setLocales(Iterable<LocaleInfo> locales) {
    this.locales.clear();
    if (locales != null) {
        Iterables.addAll(this.locales, locales);
    }//from w w w. j  a v a  2s  .  c  o m
}