public class ComparatorFile
extends java.lang.Object
implements java.util.Comparator<java.io.File>
Modifier and Type | Field and Description |
---|---|
static ComparatorFile |
COMPARATOR_FILE
Comparator unique instance
|
Modifier | Constructor and Description |
---|---|
private |
ComparatorFile()
Create a new instance of ComparatorFile
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.io.File file1,
java.io.File file2)
Compare 2 files.
|
public static final ComparatorFile COMPARATOR_FILE
public int compare(java.io.File file1, java.io.File file2)
compare
in interface java.util.Comparator<java.io.File>
file1
- First filefile2
- Second fileComparator.compare(java.lang.Object, java.lang.Object)