@Override public int compare(BaseObject lhs, BaseObject rhs) { QueitCard q1 = (QueitCard) lhs; QueitCard q2 = (QueitCard) rhs; return (int) (q2.getBegin().getTime() - q1.getBegin().getTime()); }
@Override public int compareTo(QueitCard o) { return getBegin().compareTo(o.getBegin()); }