org.ow2.jonas.deployablemonitor
Class LexicographicallyFileComparator

java.lang.Object
  extended by 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

Constructor Summary
LexicographicallyFileComparator()
           
 
Method Summary
 int compare(File file1, File file2)
          Compare two files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

LexicographicallyFileComparator

public LexicographicallyFileComparator()
Method Detail

compare

public int compare(File file1,
                   File file2)
Compare two files.

Specified by:
compare in interface Comparator<File>
Parameters:
file1 - the first file to compare
file2 - the second file to compare.
Returns:
compare mode between


Copyright © 2010 OW2 Consortium. All Rights Reserved.