com.google.common.collect.ImmutableCollection



API Populatity

22 Client projects

Project: com.google

Project facebook/buck in file ...e09d006/src.com.facebook.buck.rules.BuildRule.java (2014-10-27)
@@ -21,6 +21,7 @@ import com.facebook.buck.model.HasBuildTarget;
 import com.facebook.buck.step.Step;
 import com.fasterxml.jackson.annotation.JsonAutoDetect;
 import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.collect.ImmutableCollection;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSortedSet;
 
@@ -64,7 +65,7 @@ public interface BuildRule extends Comparable<HasBuildTarget>, HasBuildTarget {
   /**
    * @return the inputs needed to build this build rule
    */
-  public Iterable<Path> getInputs();
+  public ImmutableCollection<Path> getInputs();
 
   /**
    * @return key based on the BuildRule's state, including the transitive closure of its
Project facebook/buck in file ....com.facebook.buck.rules.DirArtifactCacheTest.java (2014-10-27)
@@ -26,6 +26,7 @@ import com.facebook.buck.util.NullFileHashCache;
 import com.google.common.base.Charsets;
 import com.google.common.base.Optional;
 import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableCollection;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.io.Files;
@@ -364,7 +365,7 @@ public class DirArtifactCacheTest {
     }
 
     @Override
-    public Iterable<Path> getInputs() {
+    public ImmutableCollection<Path> getInputs() {
       return ImmutableList.of(file.toPath());
     }
   }
Project facebook/buck in file ...src.com.facebook.buck.java.DefaultJavaLibrary.java (2014-06-11)
@@ -60,6 +60,7 @@ import com.google.common.base.Predicate;
 import com.google.common.base.Predicates;
 import com.google.common.base.Supplier;
 import com.google.common.base.Suppliers;
+import com.google.common.collect.ImmutableCollection;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSetMultimap;
@@ -476,7 +477,7 @@ public class DefaultJavaLibrary extends AbstractBuildable
   }
 
   @Override
-  public Collection<Path> getInputsToCompareToOutput() {
+  public ImmutableCollection<Path> getInputsToCompareToOutput() {
     ImmutableList.Builder<Path> builder = ImmutableList.builder();
     builder.addAll(SourcePaths.filterInputsToCompareToOutput(this.srcs));
     builder.addAll(SourcePaths.filterInputsToCompareToOutput(this.resources));