Package repast.simphony.query
Class PropertyNotEquals<T>
java.lang.Object
repast.simphony.query.AbstractPropertyQuery<T>
repast.simphony.query.PropertyNotEquals<T>
- All Implemented Interfaces:
Query<T>
Deprecated.
Query that returns any objects in a context with a specified property
whose value is not equal to some specified value.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Field Summary
Fields inherited from class repast.simphony.query.AbstractPropertyQuery
EMPTY, msgCenter, primNums, propertyValue
-
Constructor Summary
ConstructorDescriptionPropertyNotEquals
(Context<T> context, String propertyName, Object propertyValue) Deprecated.Creates a PropertyEquals query to query the specified context for objects with the specified property where that property is equal to the specified value. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.collections15.Predicate<T>
createPredicate
(Context<T> context, String propertyName) Deprecated.Creates a Predicate that tests for property equality.Methods inherited from class repast.simphony.query.AbstractPropertyQuery
getQueryPredicate, propertyNotFound, query, query
-
Constructor Details
-
PropertyNotEquals
Deprecated.Creates a PropertyEquals query to query the specified context for objects with the specified property where that property is equal to the specified value.- Parameters:
context
-propertyName
-propertyValue
-
-
-
Method Details
-
createPredicate
protected org.apache.commons.collections15.Predicate<T> createPredicate(Context<T> context, String propertyName) Deprecated.Creates a Predicate that tests for property equality.- Specified by:
createPredicate
in classAbstractPropertyQuery<T>
- Parameters:
context
-propertyName
-- Returns:
- a Predicate that tests for property equality.
-
Context.getObjectsAsStream(Class)
and the Java 8+ streaming APIStream
instead.