Code example for Set

Methods: isEmpty

0
        return this;
    } 
 
    public Object addToAntBuilder(Object node, String childNodeName) {
 
        if (!includeSpecs.isEmpty() || !excludeSpecs.isEmpty()) {
            throw new UnsupportedOperationException("Cannot add include/exclude specs to Ant node. Only include/exclude patterns are currently supported.");
        } 
 
        return new PatternSetAntBuilderDelegate(includes, excludes, caseSensitive).addToAntBuilder(node, childNodeName);
    } 
}