Package io.camunda.search.clients.query
Record Class SearchBoolQuery
java.lang.Object
java.lang.Record
io.camunda.search.clients.query.SearchBoolQuery
- All Implemented Interfaces:
SearchQueryOption
public record SearchBoolQuery(List<SearchQuery> filter, List<SearchQuery> must, List<SearchQuery> mustNot, List<SearchQuery> should)
extends Record
implements SearchQueryOption
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSearchBoolQuery(List<SearchQuery> filter, List<SearchQuery> must, List<SearchQuery> mustNot, List<SearchQuery> should) Creates an instance of aSearchBoolQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.must()Returns the value of themustrecord component.mustNot()Returns the value of themustNotrecord component.should()Returns the value of theshouldrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.search.clients.query.SearchQueryOption
toSearchQuery
-
Constructor Details
-
SearchBoolQuery
public SearchBoolQuery(List<SearchQuery> filter, List<SearchQuery> must, List<SearchQuery> mustNot, List<SearchQuery> should) Creates an instance of aSearchBoolQueryrecord class.- Parameters:
filter- the value for thefilterrecord componentmust- the value for themustrecord componentmustNot- the value for themustNotrecord componentshould- the value for theshouldrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
must
Returns the value of themustrecord component.- Returns:
- the value of the
mustrecord component
-
mustNot
Returns the value of themustNotrecord component.- Returns:
- the value of the
mustNotrecord component
-
should
Returns the value of theshouldrecord component.- Returns:
- the value of the
shouldrecord component
-