Interface SearchOrExpression

All Superinterfaces:
SearchCompoundExpression, SearchQuery

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

     SearchOrExpression searchOrExpression = SearchOrExpression.builder()
             .plusOr(orBuilder -> orBuilder)
             .build()
 
  • Method Details

    • getOr

      @NotNull @Valid @NotNull @Valid List<SearchQuery> getOr()
      Returns:
      or
    • setOr

      void setOr(SearchQuery... or)
      set or
      Parameters:
      or - values to be set
    • setOr

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

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

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

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

      static SearchOrExpressionBuilder builder()
      builder factory method for SearchOrExpression
      Returns:
      builder
    • builder

      static SearchOrExpressionBuilder builder(SearchOrExpression template)
      create builder for SearchOrExpression instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withSearchOrExpression

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