Back to project page CakeUI.
The source code is released under:
GNU General Public License
If you think the Android project CakeUI listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cakeui.utils; /*from w w w .ja v a 2s . co m*/ import java.util.Comparator; /** * * @author Mariana Azevedo * @email mariana@bsi.ufla.br * * Class that implements generic Comparator. */ public class CakeComparator<T> implements Comparator<T>{ @Override public int compare(T lhs, T rhs) { return lhs.toString().compareTo(rhs.toString()); } }