Example usage for com.google.common.collect ImmutableList copyOf

List of usage examples for com.google.common.collect ImmutableList copyOf

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableList copyOf.

Prototype

public static <E> ImmutableList<E> copyOf(E[] elements) 

Source Link

Usage

From source file:com.facebook.presto.orc.metadata.StripeStatistics.java

public StripeStatistics(List<ColumnStatistics> columnStatistics) {
    this.columnStatistics = ImmutableList.copyOf(requireNonNull(columnStatistics, "columnStatistics is null"));
}

From source file:com.google.errorprone.refaster.ULambda.java

public static ULambda create(ParameterKind parameterKind, Iterable<UVariableDecl> parameters, UTree<?> body) {
    return new AutoValue_ULambda(parameterKind, ImmutableList.copyOf(parameters), body);
}

From source file:com.facebook.buck.cxx.Linkers.java

public static Iterable<String> iXlinker(String... args) {
    return iXlinker(ImmutableList.copyOf(args));
}

From source file:com.enonic.cms.core.portal.livetrace.CompletedPortalRequests.java

public List<PortalRequestTrace> getList() {
    synchronized (list) {
        return ImmutableList.copyOf(list);
    }
}

From source file:com.facebook.buck.shell.DefaultShellStep.java

public DefaultShellStep(String... args) {
    this(ImmutableList.copyOf(args));
}

From source file:org.sonarqube.ws.client.ce.TaskWsRequest.java

private static List<String> createAdditionalFields(Builder builder) {
    if (!builder.errorStacktrace && !builder.scannerContext) {
        return Collections.emptyList();
    }/* ww w .  j a v  a 2 s.  c  om*/
    List<String> res = new ArrayList<>(2);
    if (builder.errorStacktrace) {
        res.add("stacktrace");
    }
    if (builder.scannerContext) {
        res.add("scannerContext");
    }
    return ImmutableList.copyOf(res);
}

From source file:org.lanternpowered.api.script.function.condition.Condition.java

static AndCondition and(Condition... conditions) {
    return new AndCondition(ImmutableList.copyOf(conditions));
}

From source file:io.prestosql.metadata.InternalTable.java

public static Builder builder(ColumnMetadata... columns) {
    return builder(ImmutableList.copyOf(columns));
}

From source file:com.wrmsr.junkie.expr.TupleExpr.java

public TupleExpr(List<Expr> exprs) {
    this.exprs = ImmutableList.copyOf(exprs);
}

From source file:com.wrmsr.wava.java.lang.tree.statement.JBlock.java

public JBlock(List<JStatement> body) {
    this.body = ImmutableList.copyOf(body);
}