Code example for Collection

Methods: containsremove

0
        if (!this.getType().hasChildren())
        { 
            throw new FileSystemException( 
                    "A child can only be removed from a folder"); 
        } 
        if (!this.children.contains(data))
        { 
            throw new FileSystemException("Child not found. " + data);
        } 
        this.children.remove(data);
        updateLastModified(); 
    } 
 
    /** 
     * @return Returns the children. 
     */ 
    Collection<RamFileData> getChildren()
    { 
        if (name == null)
        {