◆ compare()
int org.turro.dossier.dossier.DossierComparator.compare |
( |
Object |
o1, |
|
|
Object |
o2 |
|
) |
| |
Definition at line 32 of file DossierComparator.java.
33 Dossier d1 = (Dossier) o1, d2 = (Dossier) o2;
34 String c1 = nullString, c2 = nullString;
35 if(d1.getCategory() !=
null) {
36 c1 = (d1.getCategory().getFullDescription() + nullString).substring(0, nullString.length());
38 if(d2.getCategory() !=
null) {
39 c2 = (d2.getCategory().getFullDescription() + nullString).substring(0, nullString.length());
41 c1 += d1.getDescription() +
"---" + d1.getId();
42 c2 += d2.getDescription() +
"---" + d2.getId();
43 return c1.compareTo(c2);
The documentation for this class was generated from the following file: