Skip to content

Commit

Permalink
Adds and/or helper methods to QueryClauseType (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund authored Jun 5, 2024
1 parent 7e7a55d commit a14330f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ public QueryClause where(ResultValue field, Operation operation, Object value) {
return new SimpleQueryClause(type, field, operation, value);
}

public QueryClause and() {
return new AndQueryClause(type);
}

public QueryClause or() {
return new OrQueryClause(type);
}

}

0 comments on commit a14330f

Please sign in to comment.