Package java.util

Examples of java.util.LinkedHashMap.keySet()


        assertTrue( map.containsKey( "CX2" ) );
        assertEquals( -1.0, map.get( "LX00" ) );
        assertEquals( -10.0, map.get( "RES" ) );
        assertEquals( -30.0, map.get( "CX2" ) );

        Iterator iter = map.keySet().iterator();
        assertEquals( "LX00", iter.next() );
        assertEquals( "RES", iter.next() );
        assertEquals( "CX2", iter.next() );

        checkGeneratedRules();
View Full Code Here


            String ddIface = ddBean.getText("adminobject-interface")[0];
            GerAdminobjectType admin = connector.addNewAdminobject();
            dcbs.put("class "+ddClass+" iface "+ddIface, new AdminObjectDCB(ddBean, admin));
        }
        List adminResults = new ArrayList();
        for (Iterator it = dcbs.keySet().iterator(); it.hasNext();) {
            String key = (String) it.next();
            DConfigBean value = (DConfigBean) dcbs.get(key);
            adminResults.add(value);
        }
        adminobjects = (AdminObjectDCB[]) adminResults.toArray(new AdminObjectDCB[adminResults.size()]);
View Full Code Here

        for (int j=0; j<size; j++) {
           mapAux.put(mapKeys.get(mapValues.indexOf(sortedArray[j])), sortedArray[j]);
        }

        Set ref = mapAux.keySet();
        Iterator it = ref.iterator();

        String mostCommon = "-";

        while (it.hasNext()) {
View Full Code Here

            String ddIface = ddBean.getText("adminobject-interface")[0];
            GerAdminobjectType admin = connector.addNewAdminobject();
            dcbs.put("class "+ddClass+" iface "+ddIface, new AdminObjectDCB(ddBean, admin));
        }
        List adminResults = new ArrayList();
        for (Iterator it = dcbs.keySet().iterator(); it.hasNext();) {
            String key = (String) it.next();
            DConfigBean value = (DConfigBean) dcbs.get(key);
            adminResults.add(value);
        }
        adminobjects = (AdminObjectDCB[]) adminResults.toArray(new AdminObjectDCB[adminResults.size()]);
View Full Code Here

                    dependenciesMap.put(node.getDescriptor(), n);
                }
                n.add(node);
            }
        }
        List list = sortModuleDescriptors(dependenciesMap.keySet(),
            new SilentNonMatchingVersionReporter());
        final double adjustFactor = 1.3;
        List ret = new ArrayList((int) (list.size() * adjustFactor + nulls.size()));
        // attempt to adjust the size to avoid too much list resizing
        for (int i = 0; i < list.size(); i++) {
View Full Code Here

            JClass c = (JClass) iter.next();
            if (!rc.containsKey(c))
                rc.put(c,c);
        }

        return new ArrayList(rc.keySet());
    }

    void generateFields(PrintWriter out, JClass jclass) {

        if (jclass.getSuperclass() == null || jclass.getSuperclass().getSimpleName().equals("Object")) {
View Full Code Here

      if (last instanceof InfoNode) {
        InfoNode info = (InfoNode) last;
        LinkedHashMap dataMap = (LinkedHashMap) info.data;
        if (filterCBItem.isSelected())
          dataMap = getFilteredMap(dataMap);
        Iterator iterator = dataMap.keySet().iterator();
        String tag;
        data = new Object[dataMap.size()][2];
        for (int i = 0; iterator.hasNext(); i++) {
          tag = (String) iterator.next();
          data[i][0] = tag;
View Full Code Here

            LinkedHashMap readJarEntries = JarUtils.readJarFileEntries(jarFile);
           
            assertEquals(jarEntries.size(), readJarEntries.size());
           
            Iterator jarEntryIter = jarEntries.keySet().iterator();
            Iterator readJarEntryIter = readJarEntries.keySet().iterator();
           
            // Iterate through original and read jar entries, which must be equal.
            while (jarEntryIter.hasNext())
            {
                String jarEntryPath = (String) jarEntryIter.next();
View Full Code Here

              }

            }
            this.Legend = new String[map.size()];
            Iterator it = map.keySet().iterator();
            int i = 0;
            while (it.hasNext()) {
              Object obj = it.next();
              Legend[i] = (String) obj;
              xyseriescollection.addSeries((XYSeries) map
View Full Code Here

                throw new LifecycleException("load", id, e);
            }

            // update the status of the loaded configurations
            addNewConfigurationsToModel(actuallyLoaded);
            results.setLoaded(actuallyLoaded.keySet());
        }
        load(id);
        monitor.finished();
        return results;
    }
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.