package edu.chl.proton.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Stina Werme
 * Created by stinawerme on 01/05/17.
 */
public class Folder extends FileSystemEntity {

    private List<Folder> folders = new ArrayList<Folder>();
    private List<File> files = new ArrayList<File>();


    public Folder(String name) {
        this.setName(name);

    }

    protected void addFolder(Folder folder) {
        folders.add(folder);
    }

    protected void addFile(File file) {
        files.add(file);
    }

    protected List<Folder> getFolders() {
        return folders;
    }

    protected List<File> getFiles() {
        return files;
    }

}

@@ -672,10 +672,176 @@
 %0A    %7D%0A%0A
+    protected void removeFolder(Folder folder) %7B%0A        folders.remove(folder);%0A    %7D%0A%0A    protected void removeFile(File file) %7B%0A        files.remove(file);%0A%0A    %7D%0A
 %7D%0A

Implement remove methods