List of usage examples for com.google.common.collect ImmutableSortedSet of
@SuppressWarnings("unchecked") public static <E> ImmutableSortedSet<E> of()
From source file:com.facebook.buck.parser.api.BuildFileManifestFactory.java
public static BuildFileManifest create(ImmutableMap<String, Map<String, Object>> targets) { return BuildFileManifest.of(targets, ImmutableSortedSet.of(), ImmutableMap.of(), Optional.empty(), ImmutableList.of());//from w w w . ja v a 2s . c om }
From source file:com.facebook.buck.rules.TargetNodes.java
/** * If {@code node} refers to a node which contains references to its * tests, returns the tests associated with that node. * * Otherwise, returns an empty set./*from w w w . j ava2s . co m*/ */ public static ImmutableSortedSet<BuildTarget> getTestTargetsForNode(TargetNode<?, ?> node) { if (node.getConstructorArg() instanceof HasTests) { return ((HasTests) node.getConstructorArg()).getTests(); } else { return ImmutableSortedSet.of(); } }
From source file:com.facebook.buck.core.model.targetgraph.impl.TargetNodes.java
/** * If {@code node} refers to a node which contains references to its tests, returns the tests * associated with that node./*from ww w . j a va 2 s . c om*/ * * <p>Otherwise, returns an empty set. */ public static ImmutableSortedSet<BuildTarget> getTestTargetsForNode(TargetNode<?> node) { if (node.getConstructorArg() instanceof HasTests) { return ((HasTests) node.getConstructorArg()).getTests(); } else { return ImmutableSortedSet.of(); } }
From source file:org.immutables.fixture.jdkonly.DefaultArray.java
@Value.Default
ImmutableSet<Integer> ints() {
return ImmutableSortedSet.of();
}
From source file:com.opengamma.financial.security.cds.CDSIndexTerms.java
/** * Creates an empty term. */ private CDSIndexTerms() { _tenors = ImmutableSortedSet.of(); }
From source file:com.facebook.buck.android.RDotJava.java
static JavacStep createJavacStepForDummyRDotJavaFiles(ImmutableSortedSet<Path> javaSourceFilePaths, Path pathToSrcsList, Path outputDirectory, JavacOptions javacOptions, BuildTarget buildTarget, SourcePathResolver resolver, SourcePathRuleFinder ruleFinder, ProjectFilesystem filesystem) { return new JavacStep(outputDirectory, NoOpClassUsageFileWriter.instance(), Optional.empty(), javaSourceFilePaths, pathToSrcsList, /* declared classpath */ ImmutableSortedSet.of(), javacOptions.getJavac(),// w ww . j av a2 s . c o m JavacOptions.builder(javacOptions).setAnnotationProcessingParams(AnnotationProcessingParams.EMPTY) .build(), buildTarget, Optional.empty(), resolver, ruleFinder, filesystem, new ClasspathChecker(), /* directToJarOutputSettings */ Optional.empty()); }
From source file:com.facebook.buck.jvm.core.EmptyJavaAbiInfo.java
@Override public ImmutableSortedSet<SourcePath> getJarContents() { return ImmutableSortedSet.of(); }
From source file:com.facebook.buck.jvm.java.CalculateAbi.java
public static CalculateAbi of(BuildTarget target, SourcePathRuleFinder ruleFinder, BuildRuleParams libraryParams, SourcePath library) { return new CalculateAbi(libraryParams.copyWithChanges(target, Suppliers.ofInstance(ImmutableSortedSet.copyOf(ruleFinder.filterBuildRuleInputs(library))), Suppliers.ofInstance(ImmutableSortedSet.of())), library); }
From source file:com.facebook.buck.cxx.AbstractCxxLibrary.java
public ImmutableSortedSet<BuildTarget> getTests() { return ImmutableSortedSet.of(); }
From source file:com.facebook.buck.core.rules.provider.FakeBuildRuleWithProviders.java
@Override public SortedSet<BuildRule> getBuildDeps() { return ImmutableSortedSet.of(); }