org.globus.cog.gridshell.model
Class ScopeableProperties.KeyComparator

java.lang.Object
  extended byorg.globus.cog.gridshell.model.ScopeableProperties.KeyComparator
All Implemented Interfaces:
Comparator
Enclosing class:
ScopeableProperties

public static class ScopeableProperties.KeyComparator
extends Object
implements Comparator

Trys to convert keys to a number if can't then it compares as String


Constructor Summary
ScopeableProperties.KeyComparator(String prefix)
           
 
Method Summary
 int compare(Object objA, Object objB)
           
 
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

ScopeableProperties.KeyComparator

public ScopeableProperties.KeyComparator(String prefix)
Method Detail

compare

public int compare(Object objA,
                   Object objB)
Specified by:
compare in interface Comparator