Code example for TreeSet

Methods: remove

0
		files.add(file);
	} 
 
	public void remove(FileInfo file) {
		file.clean();
		files.remove(file);
	} 
 
	public int size() { 
		return files.size();
	} 
 
	/** 
	 * iterate the files in ascending order by their filename 
	 */ 
	public Iterator<FileInfo> iterator() {
		return files.iterator();
	} 
 
	public Iterator<FileInfo> descendingIterator() {
		return files.descendingIterator();