List of usage examples for com.google.common.collect ImmutableList copyOf
public static <E> ImmutableList<E> copyOf(E[] elements)
From source file:com.google.errorprone.analysis.SumTopLevelAnalysis.java
public static SumTopLevelAnalysis create(Iterable<? extends TopLevelAnalysis> analyses) { return new AutoValue_SumTopLevelAnalysis(ImmutableList.copyOf(analyses)); }
From source file:dagger.model.ComponentPath.java
/** Returns a new {@link ComponentPath} from {@code components}. */ public static ComponentPath create(Iterable<TypeElement> components) { return new AutoValue_ComponentPath(ImmutableList.copyOf(components)); }
From source file:io.prestosql.RowPagesBuilder.java
public static RowPagesBuilder rowPagesBuilder(Type... types) { return rowPagesBuilder(ImmutableList.copyOf(types)); }
From source file:extrabiomes.helpers.ForestryModHelper.java
public static Collection<ItemStack> getDiggerBackPackItems() { return ImmutableList.copyOf(backpackDigger); }
From source file:com.cdancy.etcd.rest.domain.auth.KeyValue.java
@SerializedNames({ "read", "write" }) public static KeyValue create(List<String> read, List<String> write) { return new AutoValue_KeyValue(read != null ? ImmutableList.copyOf(read) : ImmutableList.<String>of(), write != null ? ImmutableList.copyOf(write) : ImmutableList.<String>of()); }
From source file:com.google.errorprone.refaster.UMethodType.java
public static UMethodType create(UType returnType, UType... parameterTypes) { return create(returnType, ImmutableList.copyOf(parameterTypes)); }
From source file:org.jclouds.azurecompute.arm.domain.AddressSpace.java
@SerializedNames({ "addressPrefixes" }) public static AddressSpace create(List<String> addressPrefixes) { return new AutoValue_AddressSpace( addressPrefixes == null ? ImmutableList.<String>of() : ImmutableList.copyOf(addressPrefixes)); }
From source file:org.gradle.performance.results.ResultsStoreHelper.java
public static List<String> splitVcsCommits(String string) { if (null != string) { return ImmutableList.copyOf(Splitter.on(",").split(string)); }/*from www. j a v a2 s.c o m*/ return Collections.emptyList(); }
From source file:com.google.errorprone.refaster.UUnionType.java
@VisibleForTesting static UUnionType create(UExpression... typeAlternatives) { return create(ImmutableList.copyOf(typeAlternatives)); }
From source file:com.spotify.heroic.common.Optionals.java
public static <T> Optional<List<T>> mergeOptionalList(final Optional<List<T>> a, Optional<List<T>> b) { return mergeOptional(a, b, (al, bl) -> ImmutableList.copyOf(Iterables.concat(al, bl))); }