Package java.util

Examples of java.util.Map.values()


  private int cntTree(Component current) {
    int cnt = 1;
    if (current instanceof Container) {
      Container co = (Container) current;
      Map children = co.getComponents();
      for (Iterator iter = children.values().iterator(); iter.hasNext();) {
        Component child = (Component) iter.next();
        cnt += cntTree(child);
      }
    }
    return cnt;
View Full Code Here


      {
        requestedStylesMap.put(name, style);
      }
    }
   
    return new HashSet(requestedStylesMap.values());
  }

  protected void collectUsedStyles(JRStyle style, Map usedStylesMap, Map allStylesMap)
  {
    if (!usedStylesMap.containsKey(style) && originalStyleList.contains(style))
View Full Code Here

         Map map = getBeanMapping();
         Method m = (Method) map.get(miMethod);

         // The Invocation might contain the actual bean method
         // e.g. For an invocation based on a JSR-181 @WebMethod annotation
         if (m == null && map.values().contains(miMethod))
         {
            m = miMethod;
         }

         if (m == null)
View Full Code Here

   public Map<String, String> getCurrentBindings()
   {
      Map<String, String> result = new TreeMap<String, String>();
      Map bindings = manager.getBindings();
      for (Object binding : bindings.values())
      {
         String key = ((AdviceBinding)binding).getName();
         String poincut = ((AdviceBinding)binding).getPointcut().getExpr();
         result.put(key, poincut);
      }
View Full Code Here

   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)
         {
View Full Code Here

        List readProperties = new ArrayList();
        List writeProperties = new ArrayList();

        Map map = BeanIntrospector.getAllProperties(beanType);

        Iterator it = map.values().iterator();
        while (it.hasNext()) {
            BeanProperty bp = (BeanProperty)it.next();

            if (set == PropertySet.READ_WRITE ||
                set == PropertySet.READ_WRITE_UNCHECKED_EXCEPTIONS)
View Full Code Here

   * @return the set of component bundles
   */
  public static Collection getComponentBundles()
  {
    Map components = getCachedComponentBundles();
    return components.values();
  }
 
  protected static Map getCachedComponentBundles()
  {
    Object cacheKey = ExtensionsEnvironment.getExtensionsCacheKey();
View Full Code Here

               }
            }

            if(missesMap != null)
            {
               for(Iterator items = missesMap.values().iterator(); items.hasNext();)
               {
                  CacheListener.MissStats item = (CacheListener.MissStats) items.next();
                  Miss m = (Miss) misses.get(item.getValue());
                  if(m == null)
                  {
View Full Code Here

            if(itemMap != null && !itemMap.isEmpty())
            {
               buf.append("<table width='100%'>")
                  .append("<tr><th>item</th><th>%</th><th>avg</th><th>min</th><th>max</th></tr>");

               for(Iterator itemIter = itemMap.values().iterator(); itemIter.hasNext();)
               {
                  StatisticalItem item = (StatisticalItem) itemIter.next();
                  buf.append("<tr><td>")
                     .append(item.getValue())
                     .append("</td><td>")
View Full Code Here

         .append("</table>");

      StringBuffer itemsTable = new StringBuffer();
      itemsTable.append("<table><tr><th>SQL</th><th>Total</th></tr>");
      int totalStmt = 0;
      for(Iterator itemIter = sqls.values().iterator(); itemIter.hasNext();)
      {
         SqlStats sql = (SqlStats)itemIter.next();
         itemsTable.append("<tr><td>").append(sql.sql)
            .append("</td><td>").append(sql.total).append("</td></tr>");
         totalStmt += sql.total;
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.