cds.util
Class FileComparTest

java.lang.Object
  extended bycds.util.FileComparTest
All Implemented Interfaces:
java.util.Comparator

class FileComparTest
extends java.lang.Object
implements java.util.Comparator

Local class used as Comparator for file names

Version:
1.0 Dec 2003
Author:
Marc Wenger/CDS

Constructor Summary
(package private) FileComparTest()
           
 
Method Summary
 int compare(java.lang.Object f1, java.lang.Object f2)
          Compare method.
 
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

FileComparTest

FileComparTest()
Method Detail

compare

public int compare(java.lang.Object f1,
                   java.lang.Object f2)
Compare method. The calback method used by the sort

Specified by:
compare in interface java.util.Comparator
Parameters:
f1 - first filename in the comparison
f2 - second filename in the comparison
Returns:
value <0, =0, >0 depending on the comparison