KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.calipso.reportgenerator.reportcalculator.expression;
2
3
4 import com.calipso.reportgenerator.reportcalculator.SharedDate;
5 import java.util.Comparator JavaDoc;
6
7 /**
8  * Comparador para shared date
9  */

10 public class SharedDateComparator implements Comparator JavaDoc{
11   public int compare(Object JavaDoc o1, Object JavaDoc o2) {
12     if (o2 instanceof SharedDate) {
13       return ((SharedDate)o1).compareTo(o2);
14     }
15     else {
16       return ((SharedDate)o1).compareTo(o2);
17     }
18   }
19
20 }
21
Popular Tags