net.lucidviews.util.io
Class AbstractFileComparator

java.lang.Object
  extended by net.lucidviews.util.io.AbstractFileComparator
All Implemented Interfaces:
Comparator, FileComparator

public abstract class AbstractFileComparator
extends Object
implements FileComparator

An abstract base class for file comparators.
This class implements the FileComparator interface and provides a default implementation of the compare( Object, Object ) method.
Sub-classes therefore just need to implement the compare( File, File ) method and the equals( Object ) method.

Since:
1.0
Version:
$Revision: 1.1.2.1 $
Author:
Stephen Battey

Constructor Summary
AbstractFileComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.lucidviews.util.io.FileComparator
compare
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

AbstractFileComparator

public AbstractFileComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)

Specified by:
compare in interface Comparator