Where { @NonNull public Where greaterThan(@NonNull String column, @NonNull Object value) { return where(column, " > ?", value); } 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 testGreaterThan() throws Exception { Where where = Where.create().greaterThan("year", 2008); checkWhere("year > ?", new String[]{"2008"}, null, where); }