Code example for Set

Methods: addAllclear

0
 
    public PatternSet copyFrom(PatternFilterable sourcePattern) {
        setIncludes(sourcePattern.getIncludes());
        setExcludes(sourcePattern.getExcludes());
        PatternSet other = (PatternSet) sourcePattern;
        includeSpecs.clear();
        includeSpecs.addAll(other.includeSpecs);
        excludeSpecs.clear();
        excludeSpecs.addAll(other.excludeSpecs);
 
        return this;
    } 
 
    public PatternSet intersect() { 
        return new IntersectionPatternSet(this);
    } 
 
    private static class IntersectionPatternSet extends PatternSet { 
 
        private final PatternSet other;
Experience pair programming with AI  Get Codota for Java