KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > users > GroupComparator


1 /*
2  * Created on Jun 7, 2005
3  */

4 package com.openedit.users;
5
6 import java.util.Comparator JavaDoc;
7
8 /**
9  * @author cburkey
10  *
11  */

12 public class GroupComparator implements Comparator JavaDoc
13 {
14
15     /* (non-javadoc)
16      * @see java.util.Comparator#compare(T, T)
17      */

18     public int compare(Object JavaDoc inO1, Object JavaDoc inO2)
19     {
20         return String.valueOf( inO1 ).toLowerCase().compareTo(String.valueOf(inO2).toLowerCase());
21     }
22
23 }
24
Popular Tags