org.mentawai.util
Class StringComparator

java.lang.Object
  extended by org.mentawai.util.StringComparator
All Implemented Interfaces:
Comparator

public class StringComparator
extends Object
implements Comparator

Compare two strings, not taking into account accents! Based on the code found here: http://www.rgagnon.com/javadetails/java-0456.html

Author:
Sergio Oliveira

Constructor Summary
StringComparator()
           
 
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

StringComparator

public StringComparator()
Method Detail

compare

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


Copyright © 2013. All Rights Reserved.