Пример #1
0
 @Override
 public String toString() {
   String rule = null;
   for (int i = 0; i < criterionList.size(); i++) {
     Criterion criterion = criterionList.get(i);
     if (rule == null) {
       rule = criterion.toString();
     } else {
       rule += " and " + criterion.toString();
     }
   }
   for (int i = 0; i < orderList.size(); i++) {
     Order order = orderList.get(i);
     rule += " " + order.toString();
   }
   return rule;
 }
Пример #2
0
 public String toString() {
   return order.toString();
 }