Code example for TreeSet

Methods: iterator

0
 
	/** 
	 * iterate the files in ascending order by their filename 
	 */ 
	public Iterator<FileInfo> iterator() {
		return files.iterator();
	} 
 
	public Iterator<FileInfo> descendingIterator() {
		return files.descendingIterator();
	} 
	 
	public String getId() {
		return id;
	} 
 
	@Override public int compareTo(PackageFileList o) {
		return -(o.id.compareTo(id));
	} 
	@Override public boolean equals(Object o) {
		if (!(o instanceof PackageFileList)) {