TUM CCSM Commons

edu.tum.cs.commons.filesystem
Class FilenameComparator

java.lang.Object
  extended by edu.tum.cs.commons.filesystem.FilenameComparator
All Implemented Interfaces:
java.util.Comparator<java.io.File>

public class FilenameComparator
extends java.lang.Object
implements java.util.Comparator<java.io.File>

Compares files based on the lexical order of their fully qualified names. Files must not be null.

Version:
$Rev: 26268 $
Author:
juergens, $Author: juergens $
Rating:
GREEN Hash: 58C92A2D888E51D9684AE5394A7D3FDF

Constructor Summary
FilenameComparator()
           
 
Method Summary
 int compare(java.io.File file1, java.io.File file2)
          
 
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(java.io.File file1,
                   java.io.File file2)

Specified by:
compare in interface java.util.Comparator<java.io.File>

TUM CCSM Commons

TUM CCSM Commons - 2.7