Class AndQuery

  • All Implemented Interfaces:
    Query

    public class AndQuery
    extends Object
    implements Query
    Represents a search Query corresponding to the logical "and" between several other queries.
    • Field Detail

      • _queries

        protected List<Query> _queries
        The list of queries. The queries on this list are distinct.
      • _ignoreEmptyQueries

        protected boolean _ignoreEmptyQueries
        If a query is empty should just ignore it, or return an empty AndQuery
    • Constructor Detail

      • AndQuery

        public AndQuery​(Query... queries)
        Build an AndQuery object.
        Parameters:
        queries - the queries.
      • AndQuery

        public AndQuery​(boolean ignoreEmptyQueries,
                        Query... queries)
        Build an AndQuery object.
        Parameters:
        ignoreEmptyQueries - If a query is empty should just ignore it, or return an empty AndQuery
        queries - the queries.
      • AndQuery

        public AndQuery​(Collection<Query> queries)
        Build an AndQuery object.
        Parameters:
        queries - the queries as a Collection.
      • AndQuery

        public AndQuery​(boolean ignoreEmptyQueries,
                        Collection<Query> queries)
        Build an AndQuery object.
        Parameters:
        ignoreEmptyQueries - If a query is empty should just ignore it, or return an empty AndQuery
        queries - the queries as a Collection.