Package java.util

Examples of java.util.TreeMap.containsKey()


          StringParam lOption = (StringParam) cmdLineHandler.getOption(PageLabelsParsedCommand.L_ARG);
          if(lOption.isSet()){
            for(Iterator lIterator = lOption.getValues().iterator(); lIterator.hasNext();){
              String currentLabel = (String) lIterator.next();
              PageLabel currentPageLabel = ValidationUtility.getPageLabel(currentLabel);
              if(labels.containsKey(new Integer(currentPageLabel.getPageNumber()))){
                log.warn("Duplicate label starting at page "+currentPageLabel.getPageNumber()+" will be ignored.");
              }else{
                labels.put(new Integer(currentPageLabel.getPageNumber()), currentPageLabel);
              }
            }
View Full Code Here


        Map svcModules = new TreeMap();
        Collection svcModuleMBeans = getAbstractNames(SERVICEMODULE_KEY + '=');
        for (Iterator it = svcModuleMBeans.iterator(); it.hasNext();) {
            AbstractName aname = (AbstractName) it.next();
            String svcModule = aname.getNameProperty(SERVICEMODULE_KEY);
            if (!svcModules.containsKey(svcModule)) {
                svcModules.put(svcModule, null);
            }
        }

        return svcModules.keySet();
View Full Code Here

    for ( Iterator iter = this.objPluginMgr.getPlugins().iterator() ; iter.hasNext() ; ) {
      PluginAdapter plugin = (PluginAdapter)iter.next();
      String pluginName = plugin.getName();
     
      // Checks if the plugin is in the list
      if ( listPkg.containsKey( pluginName ) ) {
        // The plugin is in the list
        // Remove the old occurence and insert a new one and
        // mark it as loaded
        listPkg.remove( pluginName );
      }
View Full Code Here

        Map svcModules = new TreeMap();
        Collection svcModuleMBeans = getAbstractNames(SERVICEMODULE_KEY + '=');
        for (Iterator it = svcModuleMBeans.iterator(); it.hasNext();) {
            AbstractName aname = (AbstractName) it.next();
            String svcModule = aname.getNameProperty(SERVICEMODULE_KEY);
            if (!svcModules.containsKey(svcModule)) {
                svcModules.put(svcModule, null);
            }
        }

        return svcModules.keySet();
View Full Code Here

            TrackedFileSummary[] trackedFiles = tracker.getTrackedFiles();
            for (int i = 0; i < trackedFiles.length; i += 1) {
                TrackedFileSummary summary = trackedFiles[i];
                long fileNum = summary.getFileNumber();
                Long file = new Long(fileNum);
                if (!map.containsKey(file)) {
                    map.put(file, summary);
                }
            }
            return map;
        } else {
View Full Code Here

                    totalSize = mb.accumulateNewUsage(in, totalSize);

                    if (in.getDirty()) {
                        Integer level = new Integer(in.getLevel());
                        Set dirtySet;
                        if (newDirtyMap.containsKey(level)) {
                            dirtySet = (Set) newDirtyMap.get(level);
                        } else {
                            dirtySet = new HashSet();
                            newDirtyMap.put(level, dirtySet);
                        }
View Full Code Here

            for ( Iterator it = childPlugins.values().iterator(); it.hasNext(); )
            {
                ReportPlugin childPlugin = (ReportPlugin) it.next();

                if ( !assembledPlugins.containsKey( childPlugin.getKey() ) )
                {
                    assembledPlugins.put( childPlugin.getKey(), childPlugin );
                }
            }
View Full Code Here

            {
                Map.Entry entry = (Map.Entry) it.next();

                String id = (String) entry.getKey();

                if ( !assembledReportSets.containsKey( id ) )
                {
                    assembledReportSets.put( id, entry.getValue() );
                }
            }
View Full Code Here

          for (int i = 0; i < ses.length; i++) {
              ComponentInfo info = new ComponentInfo();
              info.name =  getAttribute(ses[i], "name");
              info.type =  "Service Engine";
              info.state =  getAttribute(ses[i], "currentState");
              if (components.containsKey(info.name)) {
                ((ComponentInfo) components.get(info.name)).type = "Unknown";
              } else {
                components.put(info.name, info);
              }
          }
View Full Code Here

    TreeMap minor = (TreeMap) registeredIds.get(category);
    if (minor == null) {
      minor = new TreeMap();
      registeredIds.put(category, minor);
    }
    if (!minor.containsKey(specific)) {
      minor.put(specific, new CountID(id));
    }
  }

  /**
 
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.