List of usage examples for com.google.common.collect ImmutableList copyOf
public static <E> ImmutableList<E> copyOf(E[] elements)
From source file:com.google.copybara.Info.java
public static Info create(Iterable<MigrationReference> migrationReferences) { return new AutoValue_Info(ImmutableList.copyOf(migrationReferences)); }
From source file:com.google.errorprone.refaster.UForAll.java
public static UForAll create(List<UTypeVar> typeVars, UType quantifiedType) { return new AutoValue_UForAll(ImmutableList.copyOf(typeVars), quantifiedType); }
From source file:extrabiomes.helpers.ForestryModHelper.java
public static Collection<ItemStack> getBasicFlowers() { return ImmutableList.copyOf(basicFlowers); }
From source file:com.google.template.soy.types.ast.GenericTypeNode.java
public static GenericTypeNode create(SourceLocation sourceLocation, String name, Iterable<? extends TypeNode> arguments) { return new AutoValue_GenericTypeNode(sourceLocation, name, ImmutableList.copyOf(arguments)); }
From source file:com.proofpoint.discovery.Services.java
public static Services services(String environment, Iterable<Service> services) { requireNonNull(services, "services is null"); return new AutoValue_Services(environment, ImmutableList.copyOf(services)); }
From source file:org.kuali.maven.wagon.auth.Assert.java
public static void noBlanksWithMsg(String msg, String... strings) { noBlanksWithMsg(msg, ImmutableList.copyOf(strings)); }
From source file:io.airlift.drift.client.ExceptionClassifier.java
static ExceptionClassifier mergeExceptionClassifiers(Iterable<? extends ExceptionClassifier> classifiers) { List<ExceptionClassifier> exceptionClassifiers = ImmutableList .copyOf(requireNonNull(classifiers, "classifiers is null")); return throwable -> exceptionClassifiers.stream().map(classifier -> classifier.classifyException(throwable)) .collect(mergeExceptionClassifications()); }
From source file:org.jclouds.b2.domain.BucketList.java
@SerializedNames({ "buckets" }) public static BucketList create(List<Bucket> buckets) { return new AutoValue_BucketList(ImmutableList.copyOf(buckets)); }
From source file:com.spotify.heroic.lifecycle.LifeCycle.java
static LifeCycle combined(Iterable<LifeCycle> many) { return ManyLifeCycle.of(ImmutableList.copyOf(many)); }
From source file:com.google.errorprone.CompositeCodeTransformer.java
public static CodeTransformer compose(CodeTransformer... transformers) { return compose(ImmutableList.copyOf(transformers)); }