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

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

Introduction

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

Prototype

@SuppressWarnings("unchecked")
    public static <E> ImmutableList<E> of() 

Source Link

Usage

From source file:com.google.devtools.build.buildjar.javac.BlazeJavacResult.java

public static BlazeJavacResult ok() {
    return new BlazeJavacResult(true, ImmutableList.of(), "", null);
}

From source file:com.palantir.docker.compose.execution.DockerComposeExecOption.java

public static DockerComposeExecOption noOptions() {
    return ImmutableDockerComposeExecOption.of(ImmutableList.of());
}

From source file:io.prestosql.execution.buffer.BufferResult.java

public static BufferResult emptyResults(String taskInstanceId, long token, boolean bufferComplete) {
    return new BufferResult(taskInstanceId, token, token, bufferComplete, ImmutableList.of());
}

From source file:com.wrmsr.wava.java.lang.JTypeSpecifier.java

public static JTypeSpecifier of(JQualifiedName name) {
    return new JTypeSpecifier(name, ImmutableList.of());
}

From source file:com.microsoft.thrifty.schema.parser.FunctionElement.java

public static Builder builder(Location location) {
    return new AutoValue_FunctionElement.Builder().location(location).documentation("").oneWay(false)
            .params(ImmutableList.of()).exceptions(ImmutableList.of());
}

From source file:org.sonar.plugins.swift.lang.checks.CheckList.java

public static List<Class> getChecks() {
    return ImmutableList.of(

    );
}

From source file:org.attribyte.api.http.NamedValues.java

/**
 * Copies values from an array to an immutable list.
 * Empty or <code>null</code> values are ignored.
 * @param values The input values.//from   ww  w .  j a  va 2s.  com
 * @return The internal values.
 */
static final ImmutableList<String> copyValues(final String[] values) {
    if (values == null || values.length == 0) {
        return ImmutableList.of();
    } else {
        ImmutableList.Builder<String> builder = ImmutableList.builder();
        for (final String value : values) {
            if (!Strings.isNullOrEmpty(value)) {
                builder.add(value);
            }
        }
        return builder.build();
    }
}

From source file:com.google.devtools.build.lib.analysis.PlatformSemantics.java

public static RuleClass.Builder platformAttributes(RuleClass.Builder builder) {
    return builder.add(attr(TOOLCHAINS_ATTR, LABEL_LIST).nonconfigurable("Used in toolchain resolution")
            .value(ImmutableList.of()));
}

From source file:com.google.errorprone.dataflow.nullnesspropagation.inference.TypeVariableInferenceVar.java

static TypeVariableInferenceVar create(TypeVariableSymbol typeVar, MethodInvocationTree typeAppSite) {
    return create(typeVar, typeAppSite, ImmutableList.of());
}

From source file:com.google.devtools.build.buildjar.javac.BlazeJavacResult.java

public static BlazeJavacResult error(String message) {
    return new BlazeJavacResult(false, ImmutableList.of(), message, null);
}