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.account.type.DistributionListRightInfo.java
public void setGrantees(List<DistributionListGranteeInfo> grantees) { this.grantees = null; if (grantees != null) { this.grantees = Lists.newArrayList(); Iterables.addAll(this.grantees, grantees); }//from w w w.j a va 2s .c o m }
From source file:kr.debop4j.timeperiod.TimePeriodContainer.java
public TimePeriodContainer(Iterable<? extends ITimePeriod> collection) { if (collection != null) Iterables.addAll(periods, collection); }
From source file:org.jclouds.aws.ec2.domain.Reservation.java
public Reservation(String region, Iterable<String> groupIds, Iterable<T> instances, @Nullable String ownerId, @Nullable String requesterId, @Nullable String reservationId) { this.region = checkNotNull(region, "region"); Iterables.addAll(this.groupIds, checkNotNull(groupIds, "groupIds")); Iterables.addAll(this, checkNotNull(instances, "instances")); this.ownerId = ownerId; this.requesterId = requesterId; this.reservationId = reservationId; }
From source file:com.zimbra.soap.mail.message.GetCommentsResponse.java
public void setComments(Iterable<CommentInfo> comments) { this.comments.clear(); if (comments != null) { Iterables.addAll(this.comments, comments); }//from ww w . ja v a 2 s . c o m }
From source file:com.zimbra.soap.admin.type.ServerQueues.java
public void setQueues(Iterable<MailQueueCount> queues) { this.queues.clear(); if (queues != null) { Iterables.addAll(this.queues, queues); }//from w w w . j a v a 2 s. com }
From source file:com.zimbra.soap.account.type.SMIMEPublicCertsInfo.java
public void setCerts(Iterable<SMIMEPublicCertInfo> certs) { this.certs.clear(); if (certs != null) { Iterables.addAll(this.certs, certs); }/* w w w. j ava 2 s .c o m*/ }
From source file:com.zimbra.soap.adminext.type.AttrsImpl.java
public Attrs setAttrs(Iterable<Attr> attrs) { this.attrs.clear(); if (attrs != null) { Iterables.addAll(this.attrs, attrs); }//from w w w. j av a2 s.c o m return this; }
From source file:com.zimbra.soap.account.type.DistributionListRightSpec.java
public void setGrantees(List<DistributionListGranteeSelector> grantees) { this.grantees = null; if (grantees != null) { this.grantees = Lists.newArrayList(); Iterables.addAll(this.grantees, grantees); }// w ww . j av a 2 s .c om }
From source file:com.zimbra.soap.admin.message.AddAccountLoggerResponse.java
public void setLoggers(Iterable<LoggerInfo> loggers) { this.loggers.clear(); if (loggers != null) { Iterables.addAll(this.loggers, loggers); }// w w w .j a v a 2s . co m }
From source file:r.lang.primitive.types.AbstractCoerceToString.java
@Override public void visit(StringExp stringExp) { ensureAdditionalCapacityFor(stringExp); Iterables.addAll(values, stringExp); }