Interface SearchAndExpression

All Superinterfaces:
SearchCompoundExpression, SearchQuery

public interface SearchAndExpression extends SearchCompoundExpression
SearchAndExpression
Example to create an instance using the builder pattern

     SearchAndExpression searchAndExpression = SearchAndExpression.builder()
             .plusAnd(andBuilder -> andBuilder)
             .build()
 
  • Method Details

    • getAnd

      @NotNull @Valid @NotNull @Valid List<SearchQuery> getAnd()
      Returns:
      and
    • setAnd

      void setAnd(SearchQuery... and)
      set and
      Parameters:
      and - values to be set
    • setAnd

      void setAnd(List<SearchQuery> and)
      set and
      Parameters:
      and - values to be set
    • of

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

      factory method to create a shallow copy SearchAndExpression
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of SearchAndExpression
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static SearchAndExpressionBuilder builder()
      builder factory method for SearchAndExpression
      Returns:
      builder
    • builder

      create builder for SearchAndExpression instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withSearchAndExpression

      default <T> T withSearchAndExpression(Function<SearchAndExpression,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<SearchAndExpression> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference