Class CatLinkTitleSorter

java.lang.Object
  extended byprog.utils.TitleSorter
      extended byCatLinkTitleSorter
All Implemented Interfaces:
java.util.Comparator

public class CatLinkTitleSorter
extends prog.utils.TitleSorter
implements java.util.Comparator

This Comparator translates the captions of the CatLinks and compares via TitleSorter. "Fish" would precede "A Zebra" because the "A " would be stripped from the caption before sorting.


Constructor Summary
CatLinkTitleSorter()
           
 
Method Summary
 int compare(java.lang.Object ob1, java.lang.Object ob2)
          Compares translated titles.
static void main(java.lang.String[] args)
           
 
Methods inherited from class prog.utils.TitleSorter
getStrippedTitle
 
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

CatLinkTitleSorter

public CatLinkTitleSorter()
Method Detail

compare

public int compare(java.lang.Object ob1,
                   java.lang.Object ob2)
Compares translated titles.

Specified by:
compare in interface java.util.Comparator

main

public static void main(java.lang.String[] args)