org.infoglue.cms.util.sorters
Class FileComparator

java.lang.Object
  extended by org.infoglue.cms.util.sorters.FileComparator
All Implemented Interfaces:
java.util.Comparator

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

Sort on either file size or modified date

Author:
Mattias Bogeblad

Constructor Summary
FileComparator(java.lang.String prop)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
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(java.lang.String prop)
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator


Copyright © 2005 InfoGlue.org All Rights Reserved.