org.mentawai.util
Class StringComparator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringComparator
public StringComparator()
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare in interface Comparator
removeAccents
public static String removeAccents(String s)
Copyright © 2012. All Rights Reserved.