Package java.util

Examples of java.util.Map.values()


   private void generateReport(TxReport report, Map sqls, Map tables)
   {
      Map itemMap = (Map) report.getStats().get(TxReport.SqlStats.NAME);
      if(itemMap != null)
      {
         for(Iterator items = itemMap.values().iterator(); items.hasNext();)
         {
            StatisticalItem item = (StatisticalItem) items.next();
            String sql = item.getValue().toLowerCase();

            SqlStats sqlStats = (SqlStats)sqls.get(sql);
View Full Code Here


      {
         lock.readLock().lock();
         try
         {
            Map state = getCurrentState(false);
            return state.values();
         }
         finally
         {
            lock.readLock().unlock();
         }
View Full Code Here

  private static Component dofind(Component current, long id, List foundPath) {
    if (current.getDispatchID() == id) return current;
    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();
        Component found = dofind(child, id, foundPath);
        if (found != null) {
          foundPath.add(child);
          return found;
View Full Code Here

    // since they are not displayed
    current.validate(ureq, vr);
    if (current instanceof Container) { // visit children
      Container co = (Container) current;
      Map children = co.getComponents();
      for (Iterator iter = children.values().iterator(); iter.hasNext();) {
        Component child = (Component) iter.next();
        doValidate(ureq, child, vr);
      }
    }
  }
View Full Code Here

      if (!v.visit(node, ureq)) return;
    }
    if (node instanceof Container) { // visit children
      Container co = (Container) node;
      Map children = co.getComponents();
      for (Iterator iter = children.values().iterator(); iter.hasNext();) {
        Component child = (Component) iter.next();
        doVisit(child, ureq);
      }
    }
    if (visitChildrenFirst) {
View Full Code Here

  public void renderHeaderIncludes(Renderer renderer, StringOutput sb, Component source, URLBuilder ubu, Translator translator, RenderingState rstate) {
    VelocityContainer vc = (VelocityContainer) source;
    // the velocity container itself needs no headerincludes, but ask the
    // children also
    Map comps = vc.getComponents();
    for (Iterator iter = comps.values().iterator(); iter.hasNext();) {
      Component child = (Component) iter.next();
      renderer.renderHeaderIncludes(sb, child, rstate);
    }
  }
View Full Code Here

  public void renderBodyOnLoadJSFunctionCall(Renderer renderer, StringOutput sb, Component source, RenderingState rstate) {
    VelocityContainer vc = (VelocityContainer) source;
    // the velocity container itself needs no headerincludes, but ask the
    // children also
    Map comps = vc.getComponents();
    for (Iterator iter = comps.values().iterator(); iter.hasNext();) {
      Component child = (Component) iter.next();
      renderer.renderBodyOnLoadJSFunctionCall(sb, child, rstate);
    }
  }
}
View Full Code Here

        {
            if (verbose)
                Debug.debug("lossless palette: " + discrete_colors);

            int palette[] = new int[discrete_colors];
            ArrayList color_counts = new ArrayList(color_map.values());

            for (int i = 0; i < color_counts.size(); i++)
            {
                ColorCount color_count = (ColorCount) color_counts.get(i);
                palette[i] = color_count.argb;
View Full Code Here

        if (verbose)
            Debug.debug("discrete colors: " + discrete_colors);

        ArrayList color_groups = new ArrayList();
        ColorGroup root = new ColorGroup(new ArrayList(color_map.values()));
        {
            color_groups.add(root);

            final Comparator comparator = new Comparator()
            {
View Full Code Here

      {
         Map managersMap = (HashMap)getApplicationData(CREATED_MANAGERS);
         while(!managersMap.isEmpty())
         {
            int stoppedInIteration = 0;
            for(Iterator i = managersMap.values().iterator(); i.hasNext();)
            {
               JDBCStoreManager2 manager = (JDBCStoreManager2)i.next();
               if(manager.stop.execute())
               {
                  i.remove();
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.