public class FileComparator
extends java.lang.Object
implements java.util.Comparator<java.io.File>, java.io.Serializable
| Constructor and Description |
|---|
FileComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.io.File f1,
java.io.File f2)
Compares two files by their names and type.
|
public int compare(java.io.File f1,
java.io.File f2)
compare in interface java.util.Comparator<java.io.File>f1 - first file to be comparedf2 - second file to be compared