java.util.LinkedHashSet



API Populatity

173 Client projects

Project: java

Package: java.util

Project JetBrains/intellij-community in file ...ovy.refactoring.introduce.GrInplaceIntroducer.java (2013-07-19)
@@ -24,6 +24,7 @@ import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrVariable;
 
+import java.util.LinkedHashSet;
 import java.util.List;
 
 /**
@@ -51,4 +52,6 @@ public abstract class GrInplaceIntroducer extends InplaceVariableIntroducer<PsiE
   protected GrVariable getVariable() {
     return (GrVariable)super.getVariable();
   }
+
+  public abstract LinkedHashSet<String> suggestNames(GrIntroduceContext context);
 }
Project JetBrains/intellij-community in file ...ellij.ide.util.AbstractTreeClassChooserDialog.java (2012-10-25)
@@ -65,6 +65,7 @@ import java.awt.event.KeyAdapter;
 import java.awt.event.KeyEvent;
 import java.awt.event.MouseEvent;
 import java.util.ArrayList;
+import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.Set;
 
@@ -288,7 +289,7 @@ public abstract class AbstractTreeClassChooserDialog<T extends PsiNamedElement>
   }
 
   private Set<Object> doFilter(Set<Object> elements) {
-    Set<Object> result = new HashSet<Object>();
+    Set<Object> result = new LinkedHashSet<Object>();
     for (Object o : elements) {
       if (myElementClass.isInstance(o) && getFilter().isAccepted((T)o)) {
         result.add(o);
Project JetBrains/intellij-community in file ...ovy.lang.psi.impl.synthetic.LightModifierList.java (2009-01-20)
@@ -21,7 +21,6 @@ import org.jetbrains.annotations.NotNull;
 import org.jetbrains.plugins.groovy.GroovyFileType;
 
 import java.util.Iterator;
-import java.util.LinkedHashSet;
 import java.util.Set;
 
 /**
@@ -30,7 +29,7 @@ import java.util.Set;
 public class LightModifierList extends LightElement implements PsiModifierList {
   private Set<String> myModifiers;
 
-  public LightModifierList(PsiManager manager, LinkedHashSet<String> modifiers) {
+  public LightModifierList(PsiManager manager, Set<String> modifiers) {
     super(manager, GroovyFileType.GROOVY_LANGUAGE);
     myModifiers = modifiers;
   }