org.apache.lenya.cms.site.usecases
Class SiteOverview.EntryComparator

java.lang.Object
  extended by org.apache.lenya.cms.site.usecases.SiteOverview.EntryComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
SiteOverview

public static class SiteOverview.EntryComparator
extends java.lang.Object
implements java.util.Comparator

Comparator for entries.


Constructor Summary
SiteOverview.EntryComparator(java.lang.String key, java.lang.String order)
           
 
Method Summary
 int compare(java.lang.Object arg0, java.lang.Object arg1)
           
 
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

SiteOverview.EntryComparator

public SiteOverview.EntryComparator(java.lang.String key,
                                    java.lang.String order)
Parameters:
key - The key to compare.
order - The order string (SiteOverview.ASC or SiteOverview.DESC).
Method Detail

compare

public int compare(java.lang.Object arg0,
                   java.lang.Object arg1)
Specified by:
compare in interface java.util.Comparator
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright $ Apache Software Foundation. All Rights Reserved.