Add a contains(String) method to SimpleEventQuery

The SimpleEventQuery class currently allows searching for events that have a property that starts or ends with a certain string, but it doesn’t allow searching for events that have a property that contains a certain string. I propose to add such a method contains(String) to SimpleEventQuery with a corresponding CONTAINS CompareType in CompareQueryCondition. The implementation would be very similar to commit 19a49eda that added the startsWith/endsWith methods.

The use case for this is that I’m currently working on a Live Data source that uses SimpleEventQuery to actually get the items and in Live Data the default query operator is contains, which also makes sense from a user’s point of view in my opinion but is currently not supported by SimpleEventQuery.



+1 Thanks

Thank you for your feedback! I’ve implemented this, see the pull request and the Jira issue.