org.jboss.test
Class PermissionName.NameLengthComparator

java.lang.Object
  extended byorg.jboss.test.PermissionName.NameLengthComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
PermissionName (src)

public static class PermissionName.NameLengthComparator
extends java.lang.Object
implements java.util.Comparator

An alternate PermissionName comparator that first orders names by length(longer names before shorter names) to ensure that the most precise names are seen first.


Constructor Summary
PermissionName.NameLengthComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
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

PermissionName.NameLengthComparator

public PermissionName.NameLengthComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator