andGroup static method

String andGroup(
  1. Iterable<String> items
)

Implementation

static String andGroup(Iterable<String> items) {
  if (items.length == 1) {
    return items.single;
  } else {
    return '(' + items.join(' AND ') + ')';
  }
}