Package java.util

Examples of java.util.TreeMap.values()


            interfaceHash = (-1L);
        }

        // Put the complete MethodStub objects to methods list.
        int n = 0;
        for (Iterator i = methodMap.values().iterator(); i.hasNext(); ) {
            methods.add(new MethodStub((Method) i.next(), n++));
        }

        methodsExist = (n > 0);
    }
View Full Code Here


            map.put(
                    new Integer(
                            (attribute.getName() + attribute.getValue()).hashCode()),
                    attribute);
        }
        return (Attribute[])map.values().toArray(new Attribute[map.size()]);
    }

    /**
     * This returns a sorted copy of the elements in the List: the
     * sorting algorithm is arbitrary but consistent, enabling the correct
View Full Code Here

                buff.append(sortedAtts[i].getName()).
                        append(sortedAtts[i].getValue());
            }
            map.put(new Integer(buff.toString().hashCode()), element);
        }
        return (Element[])map.values().toArray(new Element[map.size()]);
    }

    /**
     * This compares the set of attributes in each element and throws an
     * unchecked exception if the sets are different in number or content
View Full Code Here

                                }
                            }
                        }

                        // Now pull out in column name sorted order
                        Iterator sortedIterator = sortMap.values().iterator();

                        while (sortedIterator.hasNext()) {
                            rows.add(sortedIterator.next());
                        }
View Full Code Here

                        }

                        // Now, sort them

                        Iterator proceduresIter = procedureRowsOrderedByName
                                .values().iterator();

                        while (proceduresIter.hasNext()) {
                            procedureRows.add(proceduresIter.next());
                        }
View Full Code Here

                                tuples.add(tablesIter.next());
                            }
                        }

                        if (viewsOrderedByName != null) {
                            Iterator viewsIter = viewsOrderedByName.values()
                                    .iterator();

                            while (viewsIter.hasNext()) {
                                tuples.add(viewsIter.next());
                            }
View Full Code Here

        }

        if ( !usingBundles.isEmpty() )
        {
            JSONArray val = new JSONArray();
            for ( Iterator ui = usingBundles.values().iterator(); ui.hasNext(); )
            {
                Bundle usingBundle = ( Bundle ) ui.next();
                val.put( getBundleDescriptor( usingBundle, pluginRoot ) );
            }
            WebConsoleUtil.keyVal( jw, "Importing Bundles", val );
View Full Code Here

                // now sort
                JSONArray val = new JSONArray();
                if ( imports.size() > 0 )
                {
                    for ( Iterator ii = imports.values().iterator(); ii.hasNext(); )
                    {
                        Clause r4Import = ( Clause ) ii.next();
                        ExportedPackage ep = ( ExportedPackage ) candidates.get( r4Import.getName() );

                        // if there is no matching export, check whether this
View Full Code Here

       
        Map map = new TreeMap();
        for (int i = 0; i < getSampleKeys().length; i++) {
            map.put(getSampleKeys()[i], getSampleValues()[i]);
        }
        sortedValues.addAll(map.values());
        sortedValues = Collections.unmodifiableList(sortedValues);
       
        sortedNewValues.addAll(Arrays.asList(getNewSampleValues()));
    }
View Full Code Here

       
        Map map = new TreeMap();
        for (int i = 0; i < getSampleKeys().length; i++) {
            map.put(getSampleValues()[i], getSampleKeys()[i]);
        }
        sortedValues.addAll(map.values());
        sortedValues = Collections.unmodifiableList(sortedValues);
       
        sortedNewValues.addAll(Arrays.asList(getNewSampleValues()));
    }
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.