Package java.util

Examples of java.util.HashMap.values()


                    syncabledd.addDependencyDescriptor(container, descriptor);
                }
            }
        }

        List/* <MultiRevisionDependencyDescriptor> */sorted = new ArrayList(mdMap
                .values());

        Collections.sort(sorted, new Comparator/* <MultiRevisionDependencyDescriptor> */() {
            public int compare(Object o1, Object o2) {
                MultiRevDependencyDescriptor desc1 = (MultiRevDependencyDescriptor) o1;
View Full Code Here


           
            // remove std groups
            fgs.remove(FetchGroup.NAME_DEFAULT);
            fgs.remove(FetchGroup.NAME_ALL);

            _customFGs = (FetchGroup[]) fgs.values().toArray
                (new FetchGroup[fgs.size()]);
        }
        return _customFGs;
    }
View Full Code Here

        for (Iterator iterator = gbeanInfo.getAttributes().iterator(); iterator.hasNext();) {
            GAttributeInfo attributeInfo = (GAttributeInfo) iterator.next();
            attributesMap.put(attributeInfo.getName(), new GBeanAttribute(this, attributeInfo, constructorArgs.contains(attributeInfo.getName())));
        }
        addManagedObjectAttributes(attributesMap);
        attributes = (GBeanAttribute[]) attributesMap.values().toArray(new GBeanAttribute[attributesMap.size()]);
        for (int i = 0; i < attributes.length; i++) {
            attributeIndex.put(attributes[i].getName(), new Integer(i));
        }

        // references
View Full Code Here

            for (Iterator iterator = attributes.iterator(); iterator.hasNext();) {
                GAttributeInfo attribute = (GAttributeInfo) iterator.next();
                map.put(attribute.getName(), attribute);
            }
            this.attributesByName = Collections.unmodifiableMap(map);
            this.attributes = Collections.unmodifiableSet(new HashSet(map.values()));
        }
        if (constructor == null) {
            this.constructor = new GConstructorInfo(Collections.EMPTY_LIST);
        } else {
            this.constructor = constructor;
View Full Code Here

        for (Iterator iterator = gbeanInfo.getAttributes().iterator(); iterator.hasNext();) {
            GAttributeInfo attributeInfo = (GAttributeInfo) iterator.next();
            attributesMap.put(attributeInfo.getName(), new GBeanAttribute(this, attributeInfo, constructorArgs.contains(attributeInfo.getName())));
        }
        addManagedObjectAttributes(attributesMap);
        attributes = (GBeanAttribute[]) attributesMap.values().toArray(new GBeanAttribute[attributesMap.size()]);
        for (int i = 0; i < attributes.length; i++) {
            attributeIndex.put(attributes[i].getName(), new Integer(i));
        }

        // references
View Full Code Here

        Map map = new HashMap();

        for (int i = 0; i < methods.length; i++)
            processMethod(methods[i], map);

        _signatures = new ArrayList(map.values());
        _count = _signatures.size();
    }

    /** @since 1.1 */
    private void processMethod(Method m, Map map)
View Full Code Here

        try {
            // now restore all versions that have a node in the ws
            int numRestored = 0;
            while (toRestore.size() > 0) {
                Version[] restored = null;
                Iterator iter = toRestore.values().iterator();
                while (iter.hasNext()) {
                    VersionImpl v = (VersionImpl) iter.next();
                    try {
                        NodeImpl node = (NodeImpl) session.getNodeByUUID(v.getFrozenNode().getFrozenUUID());
                        restored = node.internalRestore(v, vsel, removeExisting);
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

    //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

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.