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.idea.blaze.base.run.DistributedExecutorSupport.java

/** Returns the blaze/bazel flags required to specify whether to run on a distributed executor. */
static List<String> getBlazeFlags(Project project, @Nullable Boolean runDistributed) {
    if (runDistributed == null) {
        return ImmutableList.of();
    }/*from   w  ww. j a v  a2  s .c  o  m*/
    DistributedExecutorSupport executorInfo = getAvailableExecutor(Blaze.getBuildSystem(project));
    if (executorInfo == null) {
        return ImmutableList.of();
    }
    return ImmutableList.of(executorInfo.getBlazeFlag(runDistributed));
}

From source file:org.opendaylight.yangtools.yang.model.util.type.BaseBinaryType.java

@Override
public List<LengthConstraint> getLengthConstraints() {
    return ImmutableList.of();
}

From source file:org.apache.james.mailbox.cassandra.mail.utils.FlagsUpdateStageResult.java

public static FlagsUpdateStageResult none() {
    return new FlagsUpdateStageResult(ImmutableList.of(), ImmutableList.of());
}

From source file:com.greensopinion.finance.services.domain.Categories.java

public Categories() {
    categories = ImmutableList.of();
}

From source file:com.facebook.buck.intellij.ideabuck.test.util.MockTestResults.java

@Override
public ImmutableList<TestCaseSummary> getTestCases() {
    return ImmutableList.of();
}

From source file:unportant.gist.jep180.DJBX31ACollider.java

@Override
public final ImmutableList<String> generate(int desiredCollisions) {
    if (desiredCollisions == 0) {
        return ImmutableList.of();
    }/*  ww w.j ava2  s  . c o m*/

    return generate0(desiredCollisions, ROOTS);
}

From source file:org.mutabilitydetector.checkers.info.AnalysisInProgress.java

private AnalysisInProgress() {
    this.inProgress = ImmutableList.of();
}

From source file:com.pingcap.tikv.operation.transformer.Skip.java

@Override
public List<DataType> getTypes() {
    return ImmutableList.of();
}

From source file:de.rnd7.movietools.util.FileTraverser.java

@Override
public Iterable<File> children(final File file) {
    if (file.isDirectory() && !file.getName().startsWith(".")) {
        return ImmutableList.copyOf(file.listFiles());
    } else {//from  w w  w  .  j a  v a 2 s . c  o m
        return ImmutableList.of();
    }
}