com.ca.commons.cbutil
Class CBCache.FileComparator

java.lang.Object
  |
  +--com.ca.commons.cbutil.CBCache.FileComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
CBCache

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

This Comparator compares two Files by their lastModified() date.


Constructor Summary
CBCache.FileComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          This Comparator compares two Files by their lastModified() date.
 
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

CBCache.FileComparator

public CBCache.FileComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
This Comparator compares two Files by their lastModified() date.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - one of the two items to be compared.
o2 - the other of the items to be compared.