示例#1
0
    @Override
    public int compare(SISView arg0, SISView arg1) {
      String t1 = arg0.getDisplayableTitle();
      String t2 = arg1.getDisplayableTitle();

      if (t1 == null) t1 = "";
      if (t2 == null) t2 = "";

      return comparator.compare(t1, t2);
    }
 @Override
 public int compareTo(CriteriaLevel o) {
   if (o == null) return 1;
   else return comparator.compare(code, o.getCode());
 }