Class LinkTitleSorter

java.lang.Object
  |
  +--prog.utils.TitleSorter
        |
        +--LinkTitleSorter
All Implemented Interfaces:
java.util.Comparator

public class LinkTitleSorter
extends TitleSorter
implements java.util.Comparator

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

Author:
John E. Darrow (c) 2000, 2001

Constructor Summary
LinkTitleSorter()
           
 
Method Summary
 int compare(java.lang.Object ob1, java.lang.Object ob2)
          Compares the captions of two Links.
static void main(java.lang.String[] args)
          A tester.
 
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

LinkTitleSorter

public LinkTitleSorter()
Method Detail

compare

public int compare(java.lang.Object ob1,
                   java.lang.Object ob2)
Compares the captions of two Links.
Specified by:
compare in interface java.util.Comparator
Overrides:
compare in class TitleSorter

main

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