org.ow2.jonas.deployablemonitor
Class LexicographicallyFileComparator
java.lang.Object
org.ow2.jonas.deployablemonitor.LexicographicallyFileComparator
- All Implemented Interfaces:
- Comparator<File>
public class LexicographicallyFileComparator
- extends Object
- implements Comparator<File>
Sort a list of files by using an lexicographically order.
- Author:
- Florent BENOIT
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LexicographicallyFileComparator
public LexicographicallyFileComparator()
compare
public int compare(File file1,
File file2)
- Compare two files.
- Specified by:
compare
in interface Comparator<File>
- Parameters:
file1
- the first file to comparefile2
- the second file to compare.
- Returns:
- compare mode between
Copyright © 2010 OW2 Consortium. All Rights Reserved.