net.lucidviews.util.io
Class AbstractFileComparator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFileComparator
public AbstractFileComparator()
compare
public int compare(Object o1,
Object o2)
-
- Specified by:
compare
in interface Comparator