Esempio n. 1
0
 public ImmutableSet<QueryTarget> getTargetsFromBuildTargetsContainer(
     Iterable<? extends HasBuildTarget> buildTargetsContainer) {
   ImmutableSortedSet.Builder<QueryTarget> builder = ImmutableSortedSet.naturalOrder();
   for (HasBuildTarget hasBuildTarget : buildTargetsContainer) {
     builder.add(getOrCreateQueryBuildTarget(hasBuildTarget.getBuildTarget()));
   }
   return builder.build();
 }
Esempio n. 2
0
 @Override
 public int compareTo(HasBuildTarget other) {
   return this.getBuildTarget().compareTo(other.getBuildTarget());
 }