Where { @NonNull public Where in(@NonNull String column, @NonNull Object... values) { final int last = values.length - 1; mWhereBuilder.append(column).append(" IN("); for (int i = 0; i < values.length; ++i) { mWhereBuilder.append("?"); if (i < last) { mWhereBuilder.append(", "); } } mWhereBuilder.append(")"); Collections.addAll(mBindValues, values); return this; } private  Where(); @NonNull static Where create(); @NonNull Where where(@NonNull String where, Object... values); @NonNull Where equalTo(@NonNull String column, @NonNull Object value); @NonNull Where notEqualTo(@NonNull String column, @NonNull Object value); @NonNull Where lessThan(@NonNull String column, @NonNull Object value); @NonNull Where lessThanOrEqualTo(@NonNull String column, @NonNull Object value); @NonNull Where greaterThan(@NonNull String column, @NonNull Object value); @NonNull Where greaterThanOrEqualTo(@NonNull String column, @NonNull Object value); @NonNull Where like(@NonNull String column, @NonNull Object value); @NonNull Where between(@NonNull String column, @NonNull Object first, @NonNull Object second); @NonNull Where isNull(@NonNull String column); @NonNull Where notNull(@NonNull String column); @NonNull Where in(@NonNull String column, @NonNull Object... values); @NonNull Where beginGroup(); @NonNull Where endGroup(); @NonNull Where and(); @NonNull Where or(); @NonNull Where limit(int limit); @NonNull Where offset(int offset); @Nullable String where(); @Nullable String[] whereArgs(); @Nullable String limit();  }
@Test public void testIn() throws Exception { Where where = Where.create().in("id", 5, 6, 7, 9); checkWhere("id IN(?, ?, ?, ?)", new String[]{"5", "6", "7", "9"}, null, where); }