Package com.nt.udc.util
Interface FileComparator
- All Superinterfaces:
Comparator
- All Known Implementing Classes:
BatchIdFileComparator
,FileNameComparator
,LastModifiedFileComparator
,NARFileComparator
,RecFileComparator
The purpose of this interface is to allow a more detailed File
comparison than that supported by the File class.
-
Method Summary
Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
compareFiles
Compares two Files- Parameters:
file1
- File to comparefile2
- File to compare- Returns:
- 1, if file1 > file2 0, if file1 == file2 -1, if file1 invalid input: '<' file2
- Throws:
FileParseException
-