Class Not<O>
- java.lang.Object
-
- com.googlecode.cqengine.query.logical.LogicalQuery<O>
-
- com.googlecode.cqengine.query.logical.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
-
-
Field Summary
-
Fields inherited from class com.googlecode.cqengine.query.logical.LogicalQuery
childQueries
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
calcHashCode()
boolean
equals(Object o)
Query<O>
getNegatedQuery()
boolean
matches(O object, QueryOptions queryOptions)
Returns the inverse of whether the negated query matches the given object.String
toString()
-
Methods inherited from class com.googlecode.cqengine.query.logical.LogicalQuery
getChildQueries, getLogicalQueries, getSimpleQueries, hashCode, hasLogicalQueries, hasSimpleQueries, size
-
-
-
-
Method Detail
-
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 testqueryOptions
- 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
-
calcHashCode
protected int calcHashCode()
- Specified by:
calcHashCode
in classLogicalQuery<O>
-
-