Package java.util

Examples of java.util.HashSet.clear()


        HashSet<String> hsSubFeatureIDs = new HashSet<String>();
        FeatureModelHelper.collectSubFeatureIDs(feature, hsSubFeatureIDs);

        Set constraints = new HashSet();

        constraints.clear();
        constraints.addAll(featureModel.getAllFeatureRelation().values());
        for (Iterator<FeatureRelation> itRelation = constraints.iterator(); itRelation.hasNext();) {
            FeatureRelation relation = itRelation.next();
            if (hsSubFeatureIDs.contains(relation.getStartFeature().getID()) || hsSubFeatureIDs.contains(relation.getEndFeature().getID())) {
                featureModelEditor.removeRelation(relation.getID());
View Full Code Here


            if (hsSubFeatureIDs.contains(relation.getStartFeature().getID()) || hsSubFeatureIDs.contains(relation.getEndFeature().getID())) {
                featureModelEditor.removeRelation(relation.getID());
            }
        }

        constraints.clear();
        constraints.addAll(constraintModel.getAllCFRelation().values());
        for (Iterator<CFRelation> itRelation = constraints.iterator(); itRelation.hasNext();) {
            CFRelation relation = itRelation.next();
            if (hsSubFeatureIDs.contains(relation.getFeature())) {
                constraintModelEditor.removeCFRelation(relation.getID());
View Full Code Here

        // on one island before firing actors on another
        // island. However, the order of execution within an
        // island should be correct.
        while (!remainingActors.isEmpty()) {
            clusteredActors.clear();
            clusteredExternalPorts.clear();

            ComponentEntity actor = _pickZeroRatePortActor(remainingActors);

            if (actor == null) {
                actor = (ComponentEntity) remainingActors.removeFirst();
View Full Code Here

                externalRates.put(port, rate);
            }

            clusteredActors.clear();
            clusteredExternalPorts.clear();

            if (!allowDisconnectedGraphs) {
                break;
            }
        }
View Full Code Here

        // in Definition 14 of the paper, until no more pairs can be removed
        // or until simulation is empty.
        Set toBeRemoved = new HashSet();

        do {
            toBeRemoved.clear();

            Iterator pairs = simulation.iterator();

            while (pairs.hasNext()) {
                StatePair pair = (StatePair) pairs.next();
View Full Code Here

        pin.close();
        settings = doc.getConnector().getResourceadapterArray(0).
                getOutboundResourceadapter().getConnectionDefinitionArray(0).
                getConnectiondefinitionInstanceArray(0).getConfigPropertySettingArray();
        assertEquals(6, settings.length);
        seen.clear();
        for (int i = 0; i < settings.length; i++) {
            GerConfigPropertySettingType setting = settings[i];
            if(seen.contains(setting.getName())) {
                fail("Duplicate for config property setting '"+setting.getName()+"'");
            }
View Full Code Here

        GerConnectorDocument doc = GerConnectorDocument.Factory.parse(pin);
        pin.close();
        GerConfigPropertySettingType[] settings = doc.getConnector().getResourceadapterArray(0).
                getResourceadapterInstance().getConfigPropertySettingArray();
        assertEquals(2, settings.length);
        seen.clear();
        for (int i = 0; i < settings.length; i++) {
            GerConfigPropertySettingType setting = settings[i];
            if(seen.contains(setting.getName())) {
                fail("Duplicate for config property setting '"+setting.getName()+"'");
            }
View Full Code Here

        resetFull();
        assertTrue("Full collection shouldn't contain other elements",
                   !collection.containsAll(col));
       
        col.clear();
        col.addAll(Arrays.asList(getFullElements()));
        assertTrue("Full collection should containAll full elements",
                   collection.containsAll(col));
        // make sure calls to "containsAll" don't change anything
        verify();
View Full Code Here

                while (loadedAclIterator.hasNext()) {
                    aclCache.putInCache((AclImpl) loadedAclIterator.next());
                }

                currentBatchToLoad.clear();
            }
        }

        // Now we're done, check every requested object identity was found (throw NotFoundException if needed)
        for (int i = 0; i < objects.length; i++) {
View Full Code Here

            }
            namesOfProcessedTables.add(curTable.getName());

            namesOfProcessedColumns.clear();
            namesOfProcessedFks.clear();
            namesOfProcessedIndices.clear();

            for (int idx = 0; idx < curTable.getColumnCount(); idx++)
            {
                Column column = curTable.getColumn(idx);
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.