abstract class AbstractFileComparator extends Object implements Comparator<File>
Comparators.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileComparator()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
File[] |
sort(File... files)
Sorts an array of files.
|
List<File> |
sort(List<File> files)
Sorts a List of files.
|
String |
toString()
String representation of this file comparator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic File[] sort(File... files)
This method uses Arrays.sort(Object[], Comparator) and returns the original array.
files - The files to sort, may be null.public List<File> sort(List<File> files)
This method uses List.sort(Comparator) and returns the original list.
files - The files to sort, may be null.