org.mmbase.servlet
Class FileNameComparator

java.lang.Object
  extended by org.mmbase.servlet.FileNameComparator
All Implemented Interfaces:
Comparator<File>

public class FileNameComparator
extends Object
implements Comparator<File>

Can be used as a value of the init parameters 'comparator' of FileServlet to make the files ordered alphabeticly

Since:
MMBase-1.9.2
Version:
$Id: $
Author:
Michiel Meeuwissen

Constructor Summary
FileNameComparator()
           
 
Method Summary
 int compare(File f1, File f2)
           
 boolean equals(Object o)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameComparator

public FileNameComparator()
Method Detail

compare

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

equals

public boolean equals(Object o)
Specified by:
equals in interface Comparator<File>
Overrides:
equals in class Object


MMBase 2.0-SNAPSHOT - null