org.opensha.commons.util
Class FileNameComparator

java.lang.Object
  extended by org.opensha.commons.util.FileNameComparator
All Implemented Interfaces:
Comparator<File>

public class FileNameComparator
extends Object
implements Comparator<File>

Comparator for filenames that promotes directories and sorts by filename for the current Locale.

Version:
$Id: FileNameComparator.java 6514 2010-04-02 17:54:13Z pmpowers $
Author:
Peter Powers

Constructor Summary
FileNameComparator()
           
 
Method Summary
 int compare(File f1, File f2)
           
 
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

FileNameComparator

public FileNameComparator()
Method Detail

compare

public int compare(File f1,
                   File f2)
Specified by:
compare in interface Comparator<File>