01: package com.calipso.reportgenerator.reportmanager;
02:
03: import com.calipso.reportgenerator.common.Rol;
04:
05: import java.util.Comparator;
06:
07: /**
08: *
09: * User: alozada
10: * Date: 30/08/2005
11: * Time: 13:16:25
12: *
13: */
14: public class CompareId implements Comparator {
15: Rol rola, rolb;
16:
17: public int compare(Object rol1, Object rol2) {
18: rola = (Rol) rol1;
19: rolb = (Rol) rol2;
20: return rola.getId().compareTo(rolb.getId());
21: }
22:
23: }
|