Class Not<O>

  • All Implemented Interfaces:
    Query<O>

    public class Not<O>
    extends LogicalQuery<O>
    Represents a logical negation on a child query, which when evaluated yields the set complement of the result set from the child query.
    Since:
    2012-04-30 17:00
    Author:
    ngallagher
    • Constructor Detail

      • Not

        public Not​(Query<O> negatedQuery)
    • Method Detail

      • getNegatedQuery

        public Query<O> getNegatedQuery()
      • matches

        public boolean matches​(O object,
                               QueryOptions queryOptions)
        Returns the inverse of whether the negated query matches the given object.
        Parameters:
        object - The object to test
        queryOptions - Optional parameters supplied by the application along with the operation which is causing this attribute to be invoked (either a query, or an update to the collection)
        Returns:
        The inverse of whether the negated query matches the given object