Package java.util

Examples of java.util.TreeMap$DescendingSubMapIterator


                    name = "zzz9555 " + name;
                }
            }

            if (buddyGroups.get(group) == null) {
                buddyGroups.put(group, new TreeMap());
            }

            ((TreeMap) buddyGroups.get(group)).put(name, buddy.getUser());

            int count = 0;
View Full Code Here


            name = buddy.getUser();
        }
        String jid = buddy.getUser();

       // synchronized (buddyGroups) {
            TreeMap buddies = ((TreeMap) buddyGroups.get(group));
            Iterator i = buddies.keySet().iterator();
            while (i.hasNext()) {
                String key = (String) i.next();
                if (buddies.get(key).equals(jid)) {
                    ((TreeMap) buddyGroups.get(group)).remove(key);
                    break;
                }
            }
View Full Code Here

    BucketTreeMap(int level)
    {
      super(level);

      map = new TreeMap();
    }
View Full Code Here

      return result;
   }

   public Map<String, String> getCurrentAspectDefinitions()
   {
      Map<String, String> result = new TreeMap();
      Map definitions = manager.getAspectDefinitions();
      for (Object def : definitions.values())
      {
         AspectFactory factory = ((AspectDefinition)def).getFactory();
        
         if (factory instanceof GenericAspectFactory)
         {
            String key = ((AspectDefinition)def).getName();
            String clazz = ((GenericAspectFactory)factory).getClassname();
            result.put(key, clazz);
         }
      }
     
      return result;
   }
View Full Code Here

  /**
   * Default CTOR
   */
  public RequestHandlerImpl()
  {
    bindings = new TreeMap();
    oidKeys = new TreeSet();
  }
View Full Code Here

      URL[] cp = new URL[jarFiles.size()];
      jarFiles.toArray(cp);
      ClassLoader parent = Thread.currentThread().getContextClassLoader();
      URLClassLoader completeClasspath = new URLClassLoader(cp, parent);

      TreeMap classVersionMap = new TreeMap();
      Iterator jarIter = jarFiles.iterator();
      while( jarIter.hasNext() )
      {
         URL jar = (URL) jarIter.next();
         try
View Full Code Here

      URL[] cp = new URL[jarFiles.size()];
      jarFiles.toArray(cp);
      ClassLoader parent = Thread.currentThread().getContextClassLoader();
      URLClassLoader completeClasspath = new URLClassLoader(cp, parent);

      TreeMap classVersionMap = new TreeMap();
      Iterator jarIter = jarFiles.iterator();
      while( jarIter.hasNext() )
      {
         URL jar = (URL) jarIter.next();
         try
View Full Code Here

      // Discover all template config files
      List configFiles = findTemplateConfigFiles(this.templateDir);

      log.debug("template config files=" + configFiles);

      Map map = Collections.synchronizedMap(new TreeMap());

      // Parse each template config file and store metadata in configMap
      for (Iterator i = configFiles.iterator(); i.hasNext(); ) {
         File file = (File)i.next();
         ConfigInfo ci = parseXMLconfig(file);
View Full Code Here

   }

   public static Iterator getDomainData(String filter) throws JMException
   {
      MBeanServer server = getMBeanServer();
      TreeMap domainData = new TreeMap();
      if( server != null )
      {
         ObjectName filterName = null;
         if( filter != null )
            filterName = new ObjectName(filter);
         Set objectNames = server.queryNames(filterName, null);
         Iterator objectNamesIter = objectNames.iterator();
         while( objectNamesIter.hasNext() )
         {
            ObjectName name = (ObjectName) objectNamesIter.next();
            MBeanInfo info = server.getMBeanInfo(name);
            String domainName = name.getDomain();
            MBeanData mbeanData = new MBeanData(name, info);
            DomainData data = (DomainData) domainData.get(domainName);
            if( data == null )
            {
               data = new DomainData(domainName);
               domainData.put(domainName, data);
            }
            data.addData(mbeanData);
         }
      }
      Iterator domainDataIter = domainData.values().iterator();
      return domainDataIter;
   }
View Full Code Here

        if (map instanceof SortedMap) {
            if (map instanceof TreeMap) {
                return (Map) ((TreeMap) map).clone();
            }
            else {
                return new TreeMap((SortedMap) map);
            }
        }
        return new HashMap(map);
    }
View Full Code Here

TOP

Related Classes of java.util.TreeMap$DescendingSubMapIterator

Copyright © 2018 www.massapicom. 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.