Interface SearchQuery

All Known Subinterfaces:
SearchAndExpression, SearchCompoundExpression, SearchDateRangeExpression, SearchDateTimeRangeExpression, SearchExactExpression, SearchExistsExpression, SearchFilterExpression, SearchFullTextExpression, SearchFullTextPrefixExpression, SearchLongRangeExpression, SearchNotExpression, SearchNumberRangeExpression, SearchOrExpression, SearchPrefixExpression, SearchQueryExpression, SearchTimeRangeExpression, SearchWildCardExpression

public interface SearchQuery
SearchQuery
Example to create an instance using the builder pattern

     SearchQuery searchQuery = SearchQuery.builder()
             .build()
 
  • Method Details

    • of

      static SearchQuery of()
      factory method
      Returns:
      instance of SearchQuery
    • of

      static SearchQuery of(SearchQuery template)
      factory method to create a shallow copy SearchQuery
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static SearchQuery deepCopy(@Nullable SearchQuery template)
      factory method to create a deep copy of SearchQuery
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static SearchQueryBuilder builder()
      builder factory method for SearchQuery
      Returns:
      builder
    • builder

      static SearchQueryBuilder builder(SearchQuery template)
      create builder for SearchQuery instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withSearchQuery

      default <T> T withSearchQuery(Function<SearchQuery,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<SearchQuery> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference