Package fr.paris.lutece.util.filesystem
Class FileNameComparator
- java.lang.Object
-
- fr.paris.lutece.util.filesystem.FileNameComparator
-
- All Implemented Interfaces:
Serializable,Comparator<File>
public class FileNameComparator extends Object implements Comparator<File>, Serializable
Comparator to order files by filenames- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileNameComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(File file1, File file2)Compare filenames-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(File file1, File file2)
Compare filenames- Specified by:
comparein interfaceComparator<File>- Parameters:
file1- File1file2- File2- Returns:
- The result of the comparaison
-
-