|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.util.io.FileUtils.FileComparator
Abstract base Comparator for file attributes.
| Field Summary | |
private boolean |
ascending
The sort order: true = ascending, false = descending |
| Constructor Summary | |
FileUtils.FileComparator()
|
|
| Method Summary | |
int |
compare(File file1,
File file2)
Compares two |
int |
compare(Object obj1,
Object obj2)
Compares two |
boolean |
isAscending()
Gets the sort order. |
void |
setAscending(boolean ascending)
Sets the sort order. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Field Detail |
private boolean ascending
The sort order: true = ascending, false = descending
| Constructor Detail |
public FileUtils.FileComparator()
| Method Detail |
public void setAscending(boolean ascending)
Sets the sort order. true for ascending,
false for descending. Default is ascending.
ascending - true for ascending,
false for descending sort orderisAscending()public boolean isAscending()
Gets the sort order. true if ascending,
false if descending.
true if ascending, false if
descending sort ordersetAscending(boolean)
public int compare(File file1,
File file2)
Compares two
file1 - the first File object to comparefile2 - the second File object to compare
public int compare(Object obj1,
Object obj2)
Compares two
compare in interface Comparatorobj1 - the first File object to compareobj2 - the second File object to compare
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||