public class NARFileComparator extends java.lang.Object implements FileComparator
Constructor and Description |
---|
NARFileComparator(LoggerIfc logger) |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compares 2 NAR file names, as described in compareFiles(x,y).
|
int |
compareFiles(java.io.File file1,
java.io.File file2)
Compares 2 NAR files, based on their File names.
|
public NARFileComparator(LoggerIfc logger)
public int compareFiles(java.io.File file1, java.io.File file2) throws FileParseException
compareFiles
in interface FileComparator
file1
- First file namefile2
- Second file nameFileParseException,
- if the file name is improperly formattedFileParseException
public int compare(java.lang.Object obj1, java.lang.Object obj2)
compare
in interface java.util.Comparator