/** * Adds a folder as child of this folder * * @param f */ public void addFolder(Folder f) { if (folders.containsKey(f.getName())) { Folder folder = folders.get(f.getName()); folder.addFoldersOf(f); } else { folders.put(f.getName(), f); f.setParentFolder(this); } }
/** * Removes a folder from this folder * * @param f */ public void removeFolder(Folder f) { folders.remove(f.getName()); }