Skip to content

Commit

Permalink
chore: Add utility method (#19759)
Browse files Browse the repository at this point in the history
  • Loading branch information
larshelge authored Jan 23, 2025
1 parent 62bb3a5 commit a009c2d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public enum QueryOperator {

private static final Set<QueryOperator> EQ_OPERATORS = EnumSet.of(EQ, NE, NEQ, IEQ, NIEQ);

private static final Set<QueryOperator> NE_OPERATORS = EnumSet.of(NE, NEQ, NIEQ);

private static final Set<QueryOperator> LIKE_OPERATORS = EnumSet.of(LIKE, NLIKE, ILIKE, NILIKE);

private static final Set<QueryOperator> COMPARISON_OPERATORS = EnumSet.of(GT, GE, LT, LE);
Expand Down Expand Up @@ -96,6 +98,10 @@ public boolean isEqualTo() {
return EQ_OPERATORS.contains(this);
}

public boolean isNotEqualTo() {
return NE_OPERATORS.contains(this);
}

public boolean isLike() {
return LIKE_OPERATORS.contains(this);
}
Expand Down

0 comments on commit a009c2d

Please sign in to comment.