code: public static Predicate in(final String expr, final List<?> values) {
  
          return new Predicate() {
  
              private String sql;
  
              public void init(AbstractSqlCreator creator) {
  
                  StringBuilder sb = new StringBuilder();
                  sb.append(expr).append(" in (");
  
                  boolean first = true;
                  for (Object value : values) {
                      String param = creator.allocateParameter();
                      creator.setParameter(param, value);
                      if (!first) {
                          sb.append(", ");
                      }
                      sb.append(":").append(param);
                      first = false;
                  }
  
                  sb.append(")");
  
                  sql = sb.toString();
  
              }
  
              public String toSql() {
                  return sql;
              }
          };
      }
docs: Adds an IN clause to a creator.
  
  @param expr
  SQL expression to be tested for inclusion.
  @param values
  Values for the IN clause.