Package java.util

Examples of java.util.HashMap.values()


        else {
            exporter.endMapping(cfg);
        }
    }
   
    for(Iterator comps = components.values().iterator(); comps.hasNext(); ) {
      Component component = (Component)comps.next();
      exporter.startComponent(component);
    }
   
    if (exporter.startGeneralConfiguration(cfg) )
View Full Code Here


                }
                props.add(property);
            }
        }
       
        Iterator iterator = components.values().iterator();
    while ( iterator.hasNext() ) {         
      Component component = (Component) iterator.next();
      ComponentPOJOClass element = new ComponentPOJOClass(component,cfg2JavaTool);
      this.processClass(element);
    }
View Full Code Here

            {
               for (Iterator it = finished.keySet().iterator(); it.hasNext();)
               {
                  executeAndLog(new DeleteNode(getTransactionId(), (String)it.next()));
               }
               for (Iterator it = finished.values().iterator(); it.hasNext();)
               {
                  executeAndLog(new AddNode(getTransactionId(), (Document)it.next()));
               }
            }
            else
View Full Code Here

                  executeAndLog(new AddNode(getTransactionId(), (Document)it.next()));
               }
            }
            else
            {
               update(finished.keySet(), finished.values());
            }
         }
         catch (IOException e)
         {
            // update failed
View Full Code Here

            uuids.put(new Integer(i), uuid);
         }

         // get child node entries for each hit
         Hits childrenHits = new AdaptingHits();
         for (Iterator it = uuids.values().iterator(); it.hasNext();)
         {
            String uuid = (String)it.next();
            try
            {
               if (nameTest != null && version.getVersion() >= IndexFormatVersion.V4.getVersion())
View Full Code Here

     * it removes all the 'null' values from the map.
     */
    public static Hashtable mapToHashtable(Map map) {
        HashMap m = new HashMap(map);
        if (m.containsKey(null)) m.remove(null);
        for (Iterator i = m.values().iterator(); i.hasNext(); )
            if (i.next() == null) i.remove();
        return new Hashtable(m);
    }

    private static final class SinkOutputStream extends OutputStream {
View Full Code Here

    //list of unique keys by side-effect on some
    //dialects
    Map uks = new HashMap();
    uks.putAll( getUniqueKeys() );
    uks.putAll( includedTable.getUniqueKeys() );
    return uks.values().iterator();
  }

  public Iterator getIndexIterator() {
    List indexes = new ArrayList();
    Iterator iter = includedTable.getIndexIterator();
View Full Code Here

    //list of unique keys by side-effect on some
    //dialects
    Map uks = new HashMap();
    uks.putAll( getUniqueKeys() );
    uks.putAll( includedTable.getUniqueKeys() );
    return uks.values().iterator();
  }

  public Iterator getIndexIterator() {
    List indexes = new ArrayList();
    Iterator iter = includedTable.getIndexIterator();
View Full Code Here

            tempProps.putAll(requestMC.getProperties());
        }
        if (responseMC != null) {
            tempProps.putAll(responseMC.getProperties());
        }
        return tempProps.values();
    }

    public Message getMessageObject() {
        // TODO does ApplicationAccessLocked apply here?
        if (responseMC != null) {
View Full Code Here

      // testing easier, given that we know that there are dup values.
      Set<String> values;
      Map dataIn = new HashMap();
      dataIn.put(1, v(m, 1));
      dataIn.put(2, v(m, 2));
      Set valuesIn = new HashSet(dataIn.values());

      final long startTime = System.currentTimeMillis();
      final long lifespan = EXPIRATION_TIMEOUT;
      cache.putAll(dataIn, lifespan, TimeUnit.MILLISECONDS);
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.