net.sourceforge.pebble.comparator
Class PageBasedContentByTitleComparator

java.lang.Object
  extended by net.sourceforge.pebble.comparator.PageBasedContentByTitleComparator
All Implemented Interfaces:
java.util.Comparator

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

A comparator used to order PageBasedContent instances, in alphabetical order of their titles.

Author:
Simon Brown

Constructor Summary
PageBasedContentByTitleComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two objects.
 
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

PageBasedContentByTitleComparator

public PageBasedContentByTitleComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares two objects.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - object 1
o2 - object 2
Returns:
-n, 0 or +n if the title of the first blog entry is less than, the same as or greater than the second, respectively


Copyright © 2003-2006, Simon Brown. All Rights Reserved.