Exemplo n.º 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());
 }
Exemplo n.º 2
0
 public Builder addRules(Iterable<Rule> rules) {
   rules.forEach(r -> addRule(r));
   return this;
 }