Class BooleanQuery

java.lang.Object
org.apache.maven.search.api.request.Query
org.apache.maven.search.api.request.BooleanQuery
Direct Known Subclasses:
BooleanQuery.And

public abstract class BooleanQuery extends Query
Boolean query.
  • Constructor Details

  • Method Details

    • getLeft

      public Query getLeft()
      Returns left term of this boolean query, never null.
    • getRight

      public Query getRight()
      Returns right term of this boolean query, never null.
    • toString

      public String toString()
      Overrides:
      toString in class Query
    • and

      public static BooleanQuery and(Query left, Query... rights)
      Creates Logical AND query (requires presence of all queries) out of passed in queries (at least 2 or more should be given).