Public Member Functions | |
FileComparator (Properties props) | |
int | compare (Object o1, Object o2) |
Definition at line 28 of file FileComparator.java.
org.turro.file.FileComparator.FileComparator | ( | Properties | props | ) |
Creates a new instance of FileComparator
Definition at line 33 of file FileComparator.java.
int org.turro.file.FileComparator.compare | ( | Object | o1, |
Object | o2 | ||
) |
Uses file.ordering.[n].name
and file.ordering.[n].order
pairs to compare FileDocument
entries. Possible fields are: directory, fileName, fileDate, fileSize
. Ex.:
file.ordering.0.name=directory file.ordering.0.order=asc file.ordering.1.name=fileName file.ordering.1.order=asc file.ordering.2.name=fileDate file.ordering.2.order=desc
Definition at line 50 of file FileComparator.java.