jrun.servlet
Class ServletMappingComparator

java.lang.Object
  |
  +--jrun.servlet.ServletMappingComparator
All Implemented Interfaces:
java.util.Comparator

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

The comparator used for keeping ServletMapping objects in the proper sorted order

Author:
Karl Moss

Constructor Summary
ServletMappingComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare two ServletMapping 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

ServletMappingComparator

public ServletMappingComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compare two ServletMapping objects. Returns a negative integer if the first mapping is shorter than the second; zero if the first mapping is the same length as the second; and a positive integer if the first mapping is longer than the second
Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - The first ServletMapping
o2 - The second ServletMapping
Returns:
The results of the comparison


Copyright � 2002 Macromedia Corporation. All Rights Reserved.