org.jboss.test
Class PermissionName.NameLengthComparator
java.lang.Object
org.jboss.test.PermissionName.NameLengthComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- PermissionName
public static class PermissionName.NameLengthComparator
- extends Object
- implements 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionName.NameLengthComparator
public PermissionName.NameLengthComparator()
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare in interface Comparator
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.