Examples of retainAll()


Examples of java.util.Set.retainAll()

     * @see org.apache.slide.webdav.util.DaslConstants
     */
    public Set getSupportedLiveProperties( String filter, String[] excludedFeatures ) {
        Set s = getSupportedLiveProperties( excludedFeatures );
        if( Q_COMPUTED_ONLY.equals(filter) ) {
            s.retainAll( computedProperties );
        }
        if( Q_PROTECTED_ONLY.equals(filter) ) {
            s.retainAll( protectedProperties );
        }
        return s;
View Full Code Here

Examples of java.util.Set.retainAll()

        Set s = getSupportedLiveProperties( excludedFeatures );
        if( Q_COMPUTED_ONLY.equals(filter) ) {
            s.retainAll( computedProperties );
        }
        if( Q_PROTECTED_ONLY.equals(filter) ) {
            s.retainAll( protectedProperties );
        }
        return s;
    }
   
    /**
 
View Full Code Here

Examples of java.util.Set.retainAll()

    this.rhs = rhs;
  }

  public Set matchingElements() {
    Set intersection = ProfileElement.profiles(lhs.matchingElements());
    intersection.retainAll(ProfileElement.profiles(rhs.matchingElements()));
    Set rc = ProfileElement.elements(intersection, lhs.matchingElements());
    rc.addAll(ProfileElement.elements(intersection, rhs.matchingElements()));
    return rc;
  }
View Full Code Here

Examples of java.util.SortedSet.retainAll()

         it.hasNext(); ) {
      final Map.Entry entry = (Map.Entry) it.next();
      final SortedSet using = (SortedSet) entry.getValue();
      using.remove((String) entry.getKey());
      using.removeAll(removeFromReferencedSets);
      using.retainAll(retainInReferencedSets);
    }
  }

  /**
   * Get a the set of Java packages that are referenced by the
View Full Code Here

Examples of java.util.TreeSet.retainAll()

            result.put(added, properties.getSVNPropertyValue(added));
        }

        // changed in props2
        tmp = new TreeSet(props2);
        tmp.retainAll(props1);
       
        for (Iterator props = tmp.iterator(); props.hasNext();) {
            String changed = (String) props.next();
            SVNPropertyValue value1 = getSVNPropertyValue(changed);
            SVNPropertyValue value2 = properties.getSVNPropertyValue(changed);
View Full Code Here

Examples of java.util.Vector.retainAll()

  NegotiableCapabilitySet negotiated =
      new NegotiableCapabilitySet(isPreference & other.isPreference());

  // Get only the common categories
  Vector commonCategories = new Vector(getCategories());
  commonCategories.retainAll(other.getCategories());

  String capName, otherCapName;
  NegotiableCapability thisCap, otherCap, negCap;
  List thisCapabilities, otherCapabilities;
View Full Code Here

Examples of java.util.Vector.retainAll()

        // we need to clone because we don't want to modify the original
        // (we remove ourselves if LOCAL is false, see below) !
        // real_dests=dests != null ? (Vector) dests.clone() : (members != null ? new Vector(members) : null);
        if(dests != null) {
            real_dests=(Vector)dests.clone();
            real_dests.retainAll(this.members);
        }
        else {
            synchronized(members) {
                real_dests=new Vector(members);
            }
View Full Code Here

Examples of java.util.Vector.retainAll()

        // we need to clone because we don't want to modify the original
        // (we remove ourselves if LOCAL is false, see below) !
        //real_dests=dests != null ? (Vector) dests.clone() : (Vector) members.clone();
        if(dests != null) {
            real_dests=(Vector)dests.clone();
            real_dests.retainAll(this.members);
        }
        else {
            synchronized(members) {
                real_dests=new Vector(members);
            }
View Full Code Here

Examples of java.util.Vector.retainAll()

        // we need to clone because we don't want to modify the original
        // (we remove ourselves if LOCAL is false, see below) !
        // real_dests=dests != null ? (Vector) dests.clone() : (members != null ? new Vector(members) : null);
        if(dests != null) {
            real_dests=(Vector)dests.clone();
            real_dests.retainAll(this.members);
        }
        else {
            synchronized(members) {
                real_dests=new Vector(members);
            }
View Full Code Here

Examples of java.util.Vector.retainAll()

        // we need to clone because we don't want to modify the original
        // (we remove ourselves if LOCAL is false, see below) !
        //real_dests=dests != null ? (Vector) dests.clone() : (Vector) members.clone();
        if(dests != null) {
            real_dests=(Vector)dests.clone();
            real_dests.retainAll(this.members);
        }
        else {
            synchronized(members) {
                real_dests=new Vector(members);
            }
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.