public class AlphabeticDescending extends java.lang.Object implements FileSorter, java.util.Comparator<java.io.File>
In the adapter configuration file this class is aliased as fs-sort-alphabetic-descending which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
AlphabeticDescending() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.io.File o1,
java.io.File o2) |
java.util.List<java.io.File> |
sort(java.util.List<java.io.File> list)
Sort the list of files that need to be processed.
|
public java.util.List<java.io.File> sort(java.util.List<java.io.File> list)
FileSorter
sort
in interface FileSorter
list
- an unsorted list of files.public int compare(java.io.File o1, java.io.File o2)
compare
in interface java.util.Comparator<java.io.File>