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

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

Introduction

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

Prototype

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

Source Link

Usage

From source file:com.facebook.buck.jvm.java.AbstractCompilerParameters.java

@Value.Default
public ImmutableSortedSet<Path> getSourceFilePaths() {
    return ImmutableSortedSet.of();
}

From source file:com.facebook.buck.js.JsLibraryBuilder.java

JsLibraryBuilder(BuildTarget target, BuildTarget worker, ProjectFilesystem filesystem) {
    super(libraryDescription, target, filesystem);
    arg.extraArgs = Optional.empty();
    arg.worker = worker;/*from   ww  w  .j  a  va2 s  .  com*/
    arg.srcs = ImmutableSortedSet.of();
    arg.basePath = Optional.empty();
}

From source file:com.facebook.buck.jvm.java.AbstractCompilerParameters.java

@Value.Default
public ImmutableSortedSet<Path> getClasspathEntries() {
    return ImmutableSortedSet.of();
}

From source file:com.facebook.buck.rules.keys.EmptyFakeBuildRule.java

@Override
public ImmutableSortedSet<BuildRule> getBuildDeps() {
    return ImmutableSortedSet.of();
}

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

@Override
public ImmutableCollection<BuildRule> getInputs(SourcePathResolver resolver) {
    return ImmutableSortedSet.of();
}

From source file:com.facebook.buck.jvm.java.OutOfProcessJdkProvidedInMemoryJavac.java

@Override
public ImmutableCollection<BuildRule> getDeps(SourcePathRuleFinder ruleFinder) {
    return ImmutableSortedSet.of();
}

From source file:com.facebook.buck.jvm.java.MavenUberJar.java

private static BuildRuleParams adjustParams(BuildRuleParams params, TraversedDeps traversedDeps) {
    return params.copyWithDeps(
            Suppliers.ofInstance(ImmutableSortedSet.copyOf(Ordering.natural(), traversedDeps.packagedDeps)),
            Suppliers.ofInstance(ImmutableSortedSet.of()));
}

From source file:com.spotify.heroic.metric.SeriesValues.java

public static SeriesValues of(final String k, final String v) {
    return new SeriesValues(ImmutableSortedSet.of(), ImmutableMap.of());
}

From source file:com.facebook.buck.apple.project_generator.ProjectGeneratorTestUtils.java

public static <T> T createDescriptionArgWithDefaults(Description<T> description) {
    T arg = description.createUnpopulatedConstructorArg();
    for (Field field : arg.getClass().getFields()) {
        Object value;/* w  ww  .j a  va  2s  . co m*/
        if (field.getType().isAssignableFrom(ImmutableSortedSet.class)) {
            value = ImmutableSortedSet.of();
        } else if (field.getType().isAssignableFrom(ImmutableList.class)) {
            value = ImmutableList.of();
        } else if (field.getType().isAssignableFrom(ImmutableMap.class)) {
            value = ImmutableMap.of();
        } else if (field.getType().isAssignableFrom(Optional.class)) {
            value = Optional.empty();
        } else if (field.getType().isAssignableFrom(String.class)) {
            value = "";
        } else if (field.getType().isAssignableFrom(Path.class)) {
            value = Paths.get("");
        } else if (field.getType().isAssignableFrom(SourcePath.class)) {
            value = new PathSourcePath(new FakeProjectFilesystem(), Paths.get(""));
        } else if (field.getType().isPrimitive()) {
            // do nothing, these are initialized with a zero value
            continue;
        } else {
            // user should provide
            continue;
        }
        try {
            field.set(arg, value);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }
    }
    return arg;
}

From source file:org.sosy_lab.cpachecker.core.defaults.precision.ScopedRefinablePrecision.java

ScopedRefinablePrecision(VariableTrackingPrecision pBaseline) {
    super(pBaseline);
    rawPrecision = ImmutableSortedSet.of();
}