com.sodius.mdw.core.util
Class AlphanumericComparator

java.lang.Object
  extended by com.sodius.mdw.core.util.AlphanumericComparator
All Implemented Interfaces:
Comparator<Object>

public class AlphanumericComparator
extends Object
implements Comparator<Object>

Compares Strings based on natural ordering, i.e. alphanumerically rather than alphabetically.

Clients may instantiate or subclass this class.

Since:
MDWorkbench 3.0.0

Constructor Summary
AlphanumericComparator()
           
 
Method Summary
 int compare(Object o1, 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

AlphanumericComparator

public AlphanumericComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator<Object>