Package java.util

Examples of java.util.Collection.removeAll()


      if (step instanceof SimpleStep && aKeys.contains(((SimpleStep)step).getAnalysisEngineKey())) {
        mSequence.set(i, null);
      }
      else if (step instanceof ParallelStep) {
        Collection keys = new ArrayList(((ParallelStep)step).getAnalysisEngineKeys());
        keys.removeAll(aKeys);
        if (keys.isEmpty()) {
          mSequence.set(i, null);
        }
        else {
          mSequence.set(i, new ParallelStep(keys));
View Full Code Here


     * @jmx:managed-operation
     */
    public synchronized void removeStartHolds(ObjectName objectName, Collection holds) {
        Collection currentHolds = (Collection) startHoldsMap.get(objectName);
        if (currentHolds != null) {
            currentHolds.removeAll(holds);
        }
    }

    /**
     * Removes all of the holds owned by a component.
View Full Code Here

      // Figure out which groups to get rid of.  We start off
      // with the full set for which we are already listening,
      // and eliminate any that are in both the new set and the
      // current set.
      Collection toRemove = new HashSet(groups);
      toRemove.removeAll(newGrps);
      // Add new groups before we remove any old groups, because
      // removeGroups will start a new round of multicast requests
      // if the set of groups becomes empty, and we don't want it
      // to do so without reason.
      groups.addAll(toAdd);
View Full Code Here

        Collection props1 = properties(null);
        Collection props2 = properties.properties(null);

        // missed in props2.
        Collection tmp = new TreeSet(props1);
        tmp.removeAll(props2);
        for (Iterator props = tmp.iterator(); props.hasNext();) {
            String missing = (String) props.next();
            comparator.propertyDeleted(missing);
            equals = false;
        }
View Full Code Here

            equals = false;
        }

        // added in props2.
        tmp = new TreeSet(props2);
        tmp.removeAll(props1);

        File tmpFile = null;
        File tmpFile1 = null;
        File tmpFile2 = null;
        OutputStream os = null;
View Full Code Here

        Collection props1 = getPropertyNames(null);
        Collection props2 = properties.getPropertyNames(null);
       
        // missed in props2.
        Collection tmp = new TreeSet(props1);
        tmp.removeAll(props2);
        for (Iterator props = tmp.iterator(); props.hasNext();) {
            String missing = (String) props.next();
            result.put(missing, null);
        }
View Full Code Here

            result.put(missing, null);
        }

        // added in props2.
        tmp = new TreeSet(props2);
        tmp.removeAll(props1);

        for (Iterator props = tmp.iterator(); props.hasNext();) {
            String added = (String) props.next();
            result.put(added, properties.getPropertyValue(added));
        }
View Full Code Here

     * @jmx:managed-operation
     */
    public synchronized void removeStartHolds(ObjectName objectName, java.util.Collection holds) {
        Collection currentHolds = (Collection)startHoldsMap.get(objectName);
        if(currentHolds != null) {
            currentHolds.removeAll(holds);
        }
    }

    /**
     * Removes all of the holds owned by a component.
View Full Code Here

     * @jmx:managed-operation
     */
    public synchronized void removeStartHolds(ObjectName objectName, Collection holds) {
        Collection currentHolds = (Collection) startHoldsMap.get(objectName);
        if (currentHolds != null) {
            currentHolds.removeAll(holds);
        }
    }

    /**
     * Removes all of the holds owned by a component.
View Full Code Here

      if (step instanceof SimpleStep && aKeys.contains(((SimpleStep)step).getAnalysisEngineKey())) {
        mSequence.set(i, null);
      }
      else if (step instanceof ParallelStep) {
        Collection keys = new ArrayList(((ParallelStep)step).getAnalysisEngineKeys());
        keys.removeAll(aKeys);
        if (keys.isEmpty()) {
          mSequence.set(i, null);
        }
        else {
          mSequence.set(i, new ParallelStep(keys));
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.