raccoon.core.file.endpoint
Class FileComparator

java.lang.Object
  extended by raccoon.core.file.endpoint.FileComparator
All Implemented Interfaces:
java.util.Comparator

public class FileComparator
extends java.lang.Object
implements java.util.Comparator

Compares the last modified time stamp of two given files.

Since:
Raccoon v1.0
Version:
$Id:$
Author:
Cedric ROUVRAIS

Constructor Summary
FileComparator()
           
 
Method Summary
 int compare(java.lang.Object pReferenceFile, java.lang.Object pCandidatFile)
          Compares the last modified attribute of the given files.
 
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

FileComparator

public FileComparator()
Method Detail

compare

public int compare(java.lang.Object pReferenceFile,
                   java.lang.Object pCandidatFile)
Compares the last modified attribute of the given files. The behaviour is the following: Note: this comparator imposes orderings that are inconsistent with equals

Specified by:
compare in interface java.util.Comparator
Parameters:
pReferenceFile - the first file used in the comparaison.
pCandidatFile - the second file used to compare to.
Returns:
an integer indicating the last modified difference.
See Also:
File#lastModified()}


Copyright null null. All Rights Reserved.