Code example for Set

Methods: addclear

0
     * Sets the files to be deleted by this task. 
     * 
     * @param target Any type of object accepted by {@link org.gradle.api.Project#files(Object...)} 
     */ 
    public void setDelete(Object target) { 
        delete.clear(); 
        this.delete.add(target); 
    } 
 
    /** 
     * Adds some files to be deleted by this task. The given targets are evaluated as per {@link org.gradle.api.Project#files(Object...)}. 
     * 
     * @param targets Any type of object accepted by {@link org.gradle.api.Project#files(Object...)} 
     */ 
    public Delete delete(Object... targets) { 
        for (Object target : targets) { 
            this.delete.add(target); 
        } 
        return this; 
    } 
Connect your IDE to all the code out there  Get Codota for Java