java.util.Setjava.util.Collection



Project Activiti/Activiti in file ...va.org.activiti.engine.parse.BpmnParseHandler.java (2013-01-30)
@@ -12,7 +12,7 @@
  */
 package org.activiti.engine.parse;
 
-import java.util.Set;
+import java.util.Collection;
 
 import org.activiti.bpmn.model.BaseElement;
 import org.activiti.engine.impl.bpmn.parser.BpmnParse;
@@ -22,7 +22,7 @@ import org.activiti.engine.impl.bpmn.parser.BpmnParse;
  */
 public interface BpmnParseHandler {
   
-  Set<Class<? extends BaseElement>> getHandledTypes();
+  Collection<Class<? extends BaseElement>> getHandledTypes();
   
   void parse(BpmnParse bpmnParse, BaseElement element);
 
Project JetBrains/intellij-community in file ...lij.ide.browsers.SelectInDefaultBrowserTarget.java (2013-12-02)
@@ -28,7 +28,7 @@ import com.intellij.util.Url;
 import com.intellij.xml.XmlBundle;
 import com.intellij.xml.util.HtmlUtil;
 
-import java.util.Set;
+import java.util.Collection;
 
 class SelectInDefaultBrowserTarget extends SelectInTargetBase {
   private static final Logger LOG = Logger.getInstance(SelectInDefaultBrowserTarget.class);
@@ -47,7 +47,7 @@ class SelectInDefaultBrowserTarget extends SelectInTargetBase {
       return false;
     }
 
-    Pair<WebBrowserUrlProvider, Set<Url>> browserUrlProvider = WebBrowserServiceImpl.getProvider(file);
+    Pair<WebBrowserUrlProvider, Collection<Url>> browserUrlProvider = WebBrowserServiceImpl.getProvider(file);
     currentName = XmlBundle.message("browser.select.in.default.name");
     if (browserUrlProvider == null) {
       return HtmlUtil.isHtmlFile(file) && !(file.getVirtualFile() instanceof LightVirtualFile);
Project JetBrains/intellij-community in file ...c.com.intellij.ide.browsers.WebBrowserService.java (2013-12-02)
@@ -20,7 +20,7 @@ import com.intellij.psi.PsiElement;
 import com.intellij.util.Url;
 import org.jetbrains.annotations.NotNull;
 
-import java.util.Set;
+import java.util.Collection;
 
 public abstract class WebBrowserService {
   public static WebBrowserService getInstance() {
@@ -30,5 +30,5 @@ public abstract class WebBrowserService {
   public abstract boolean canOpenInBrowser(@NotNull PsiElement psiElement);
 
   @NotNull
-  public abstract Set<Url> getUrlToOpen(@NotNull PsiElement psiElement, boolean preferLocalUrl) throws WebBrowserUrlProvider.BrowserException;
+  public abstract Collection<Url> getUrlToOpen(@NotNull PsiElement psiElement, boolean preferLocalUrl) throws WebBrowserUrlProvider.BrowserException;
 }
\ No newline at end of file
Project JetBrains/intellij-community in file ...ellij.openapi.roots.impl.ProjectFileIndexImpl.java (2006-01-09)
@@ -14,7 +14,7 @@ import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.openapi.vfs.VirtualFileFilter;
 import org.jetbrains.annotations.NotNull;
 
-import java.util.Set;
+import java.util.Collection;
 
 public class ProjectFileIndexImpl implements ProjectFileIndex {
   private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.roots.impl.ProjectFileIndexImpl");
@@ -96,7 +96,7 @@ public class ProjectFileIndexImpl implements ProjectFileIndex {
     DirectoryIndex directoryIndex = myDirectoryIndex;
     final DirectoryInfo info = directoryIndex.getInfoForDirectory(dir);
     if (info == null) return OrderEntry.EMPTY_ARRAY;
-    final Set<OrderEntry> orderEntries = info.orderEntries;
+    final Collection<OrderEntry> orderEntries = info.getOrderEntries();
     return orderEntries.toArray(new OrderEntry[orderEntries.size()]);
   }
 
Project Netflix/servo in file ...java.com.netflix.servo.DefaultMonitorRegistry.java (2012-08-14)
@@ -25,7 +25,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import java.util.Properties;
-import java.util.Set;
+import java.util.Collection;
 
 /**
  * Default registry that delegates all actions to a class specified by the
@@ -87,7 +87,7 @@ public final class DefaultMonitorRegistry implements MonitorRegistry {
      * The set of registered Monitor objects.
      */
     @Override
-    public Set<Monitor<?>> getRegisteredMonitors() {
+    public Collection<Monitor<?>> getRegisteredMonitors() {
         return registry.getRegisteredMonitors();
     }