Package java.util

Examples of java.util.TreeSet.toArray()


                && !"".equals(sofaMapping.getComponentSofaName()))
          bindings.add(sofaMapping.getComponentKey() + '/' + sofaMapping.getComponentSofaName());
        else
          bindings.add(sofaMapping.getComponentKey());
    }
    String[] results = (String[]) bindings.toArray(stringArray0);
    Arrays.sort(results);
    return results;
  }

  /*
 
View Full Code Here


      String[] names = cgs[i].getNames();
      for (int j = 0; j < names.length; j++) {
        results.add(names[j]);
      }
    }
    return (String[]) results.toArray(stringArray0);
  }

  public void removeCommonParmSettingsFromMultipleGroups() {
    ConfigurationParameterSettings modelSettings = getModelSettings();
    String[] allGroupNames = getAllGroupNames();
View Full Code Here

      }

      views = views.getNext();
    }

    Completion[] completionArray = (Completion[])completions
      .toArray(new Completion[completions.size()]);

    return completionArray;
  } //}}}
View Full Code Here

    if (proposalsTwo != null) {
      for (int i = 0; i < proposalsTwo.length; i++)
        results.add(proposalsTwo[i]);
    }

    return (ICompletionProposal[]) results.toArray(new ICompletionProposal[results.size()]);
  }

  private IContentAssistProcessor getJSContentAssistProcessor() {
    if (fJSContentAssistProcessor == null) {
      fJSContentAssistProcessor = new StructuredTextViewerConfigurationHTML().getContentAssistant(null).getContentAssistProcessor(IHTMLPartitions.SCRIPT);
View Full Code Here

            supertypes = new Name[] { names[0] };
        } else {
            // Sort and remove duplicates
            SortedSet types = new TreeSet();
            types.addAll(Arrays.asList(names));
            supertypes = (Name[]) types.toArray(new Name[types.size()]);
        }
    }

    /**
     * Sets the mixin flag.
View Full Code Here

        }
    }
   
    private void configureSnippetSetsComboBox() {       
        TreeSet sortedSnippets = new TreeSet(snippetMap.keySet());
        String snippetSetKeys[] = (String[])sortedSnippets.toArray(new String[0]);
       
        DefaultComboBoxModel snippetModel = new DefaultComboBoxModel();
        for(String snippetKey : snippetSetKeys) {
            snippetModel.addElement(snippetKey);
        }
View Full Code Here

            }
        });

        collect_interfaces(s, c);
        remote_interfaces = new Class[s.size()];
        s.toArray(remote_interfaces);
        return remote_interfaces;
    }

    /** Read an instance of this value from a CDR stream */
    public Object read(org.omg.CORBA.portable.InputStream in) {
View Full Code Here

        Set mustAttrSet = new TreeSet();
        for ( int i = 0; i < this.objectClassNames.length; i++ )
        {
            this.fetchMust( this.objectClassNames[i], mustAttrSet );
        }
        return ( String[] ) mustAttrSet.toArray( new String[0] );
    }


    /**
     * Returns the must attribute types of this and all super object
View Full Code Here

        Set mayAttrSet = new TreeSet();
        for ( int i = 0; i < this.objectClassNames.length; i++ )
        {
            this.fetchMay( this.objectClassNames[i], mayAttrSet );
        }
        return ( String[] ) mayAttrSet.toArray( new String[0] );
    }


    /**
     * Returns the may attribute types of this and all super object classes.
View Full Code Here

            ValueMemberType vma =
                new ValueMemberType(fields[i].getName(), fields[i].getType(), Modifier.isPublic(mods));
            m.add(vma);
        }
        members = new ValueMemberType[m.size()];
        members = (ValueMemberType[])m.toArray(members);
        // Get superclass analysis
        Class superClass = javaClass.getSuperclass();
        if (superClass == java.lang.Object.class)
            superClass = null;
        if (superClass == null)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.