KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > reportcalculator > expression > StringComparator


1 package com.calipso.reportgenerator.reportcalculator.expression;
2
3 import java.util.Comparator JavaDoc;
4
5 /**
6  * User: pgore
7  * Date: May 30, 2003
8  * Time: 11:53:03 AM
9  */

10 public class StringComparator implements Comparator JavaDoc{
11   public int compare(Object JavaDoc o1, Object JavaDoc o2) {
12     return ((String JavaDoc)o1).compareToIgnoreCase((String JavaDoc) o2);
13   }
14
15 }
16
Popular Tags