public class FileComparator
extends java.lang.Object
implements java.util.Comparator<java.io.File>
| Modifier and Type | Field and Description |
|---|---|
static FileComparator |
FILE_COMPARATOR
Singleton comparator
|
| Modifier | Constructor and Description |
|---|---|
private |
FileComparator()
Constructs FileComparator
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.io.File file1,
java.io.File file2)
Compare two files
|
public static final FileComparator FILE_COMPARATOR
public int compare(java.io.File file1,
java.io.File file2)
compare in interface java.util.Comparator<java.io.File>file1 - File 1file2 - File 2Comparator.compare(java.lang.Object, java.lang.Object)