org.codehaus.enunciate.util
Class ResourceMethodPathComparator

java.lang.Object
  extended by org.codehaus.enunciate.util.ResourceMethodPathComparator
All Implemented Interfaces:
java.util.Comparator<java.lang.String>

public class ResourceMethodPathComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>

Sorts the path of ResourceMethods by path, then alphabetically.

Author:
Ryan Heaton

Constructor Summary
ResourceMethodPathComparator()
           
 
Method Summary
 int compare(java.lang.String resource1Path, java.lang.String resource2Path)
           
 
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

ResourceMethodPathComparator

public ResourceMethodPathComparator()
Method Detail

compare

public int compare(java.lang.String resource1Path,
                   java.lang.String resource2Path)
Specified by:
compare in interface java.util.Comparator<java.lang.String>