Package java.util

Examples of java.util.HashSet.removeAll()


                    LOG.trace("Loading Convention config from bundle [#0]", bundleName);
                conventionPackageProvider.loadPackages();
            }

            Set<String> packagesAfterLoading = new HashSet(configuration.getPackageConfigNames());
            packagesAfterLoading.removeAll(packagesBeforeLoading);
            if (!packagesAfterLoading.isEmpty()) {
                //add the new packages to the map of bundle -> package
                for (String packageName : packagesAfterLoading)
                    bundleAccessor.addPackageFromBundle(bundle, packageName);
            }
View Full Code Here


        case CLEAR_SELECTED_PATHS:
            selection = null;
            break;
        case REMOVE_SELECTED_PATHS:
            final HashSet selectionHashSet = arrayToHashSet(selection);
            selectionHashSet.removeAll(arrayToHashSet(paths));
            selection = hashSetToTreePathArray(selectionHashSet);
            break;
        case SET_SELECTED_PATHS:
            selection = getUniquePathArray(paths);
            break;
View Full Code Here

                                      final TreePath[] newSelection) {

        final HashSet addedElements = arrayToHashSet(newSelection);
        final HashSet removedElements = arrayToHashSet(oldSelection);
        addedElements.removeAll(removedElements);
        removedElements.removeAll(arrayToHashSet(newSelection));

        Vector result = PathPlaceHolder.createPathsPlaceHolders(hashSetToTreePathArray(addedElements), true);
        result.addAll(PathPlaceHolder.createPathsPlaceHolders(hashSetToTreePathArray(removedElements), false));

        return result;
View Full Code Here

    public void caseAUnaryNotUnaryExpr(AUnaryNotUnaryExpr node) {
        super.caseAUnaryNotUnaryExpr(node);
       
        Set result = new HashSet(allValues);
        result.removeAll(this.result);
        this.result = result;
    }

    public void caseAAndExpression(AAndExpression node) {
        Iterator terms = node.getUnaryExpr().iterator();
View Full Code Here

     @return null if there are no orphaned data rollups; otherwise
     *     returns XML text for the dynamically generated templates.
     */
    public static String generateRollupTemplateXML() {
        HashSet orphans = new HashSet(rollupsDefined);
        orphans.removeAll(rollupsUsed);

        if (orphans.isEmpty()) return null;

        StringBuffer result = new StringBuffer();
        result.append("<?xml version='1.0'?><dashboard-process-template>");
View Full Code Here

                .getResolvedModuleRevisionId());
        Message.info("\tdelivering ivy file to " + publishedIvy);

        String[] confs = ConfigurationUtils.replaceWildcards(options.getConfs(), md);
        Set confsToRemove = new HashSet(Arrays.asList(md.getConfigurationsNames()));
        confsToRemove.removeAll(Arrays.asList(confs));

        try {
            XmlModuleDescriptorUpdater.update(settings, ivyFileURL, new File(publishedIvy),
                resolvedDependencies, options.getStatus(), revision, options.getPubdate(), null,
                true, (String[]) confsToRemove.toArray(new String[confsToRemove.size()]));
View Full Code Here

                    File tmp = File.createTempFile("ivy", ".xml");
                    tmp.deleteOnExit();

                    String[] confs = ConfigurationUtils.replaceWildcards(options.getConfs(), md);
                    Set confsToRemove = new HashSet(Arrays.asList(md.getConfigurationsNames()));
                    confsToRemove.removeAll(Arrays.asList(confs));

                    try {
                        XmlModuleDescriptorUpdater.update(settings, ivyFileURL, tmp, new HashMap(),
                            options.getStatus() == null ? md.getStatus() : options.getStatus(),
                            options.getPubrevision(), options.getPubdate() == null ? new Date()
View Full Code Here

            ancestor.getNode().setResolvedNodes(node.getModuleId(), node.getRootModuleConf(),
                resolved);

            Collection evicted = new HashSet(ancestor.getNode().getEvictedNodes(node.getModuleId(),
                node.getRootModuleConf()));
            evicted.removeAll(resolved);
            evicted.addAll(toevict);
            ancestor.getNode().setEvictedNodes(node.getModuleId(), node.getRootModuleConf(),
                evicted);
            ancestor.getNode().setPendingConflicts(node.getModuleId(), node.getRootModuleConf(),
                Collections.EMPTY_SET);
View Full Code Here

            // it's time to update parent resolved and evicted with what was found

            Collection evicted = new HashSet(ancestor.getNode().getEvictedNodes(node.getModuleId(),
                node.getRootModuleConf()));
            toevict.removeAll(resolved);
            evicted.removeAll(resolved);
            evicted.addAll(toevict);
            evicted.add(node.getNode());
            ancestor.getNode().setEvictedNodes(node.getModuleId(), node.getRootModuleConf(),
                evicted);
            ancestor.getNode().setPendingConflicts(node.getModuleId(), node.getRootModuleConf(),
View Full Code Here

            }
            HashSet rconfsSet = new HashSet(Arrays.asList(rconfs));
            HashSet confsSet = new HashSet(Arrays.asList(confs));
            Message.debug("resolved configurations:   " + rconfsSet);
            Message.debug("asked configurations:      " + confsSet);
            confsSet.removeAll(rconfsSet);
            Message.debug("to resolve configurations: " + confsSet);
            return (String[]) confsSet.toArray(new String[confsSet.size()]);
        } else {
            Message.debug("module already resolved, no configuration to resolve");
            return new String[0];
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.