Пример #1
0
 private static String rulesToString(Iterable<Rule> rules) {
   return StreamSupport.stream(rules.spliterator(), false)
       .map(r -> "\n// " + r.toString() + "\n.addRule(" + r + ")")
       .collect(Collectors.joining());
 }
Пример #2
0
 public Builder addRules(Iterable<Rule> rules) {
   rules.forEach(r -> addRule(r));
   return this;
 }