org.mentawai.util
Class StringComparator

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

public class StringComparator
extends java.lang.Object
implements java.util.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(java.lang.Object o1, java.lang.Object o2)
           
static java.lang.String removeAccents(java.lang.String s)
           
 
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(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

removeAccents

public static java.lang.String removeAccents(java.lang.String s)


Copyright © 2005 Mentawai Team. All Rights Reserved.