Пример #1
0
 @Override
 public int compare(BaseObject lhs, BaseObject rhs) {
   QueitCard q1 = (QueitCard) lhs;
   QueitCard q2 = (QueitCard) rhs;
   return (int) (q2.getBegin().getTime() - q1.getBegin().getTime());
 }
Пример #2
0
 @Override
 public int compareTo(QueitCard o) {
   return getBegin().compareTo(o.getBegin());
 }