Package repast.simphony.query
Class PropertyGreaterThan<T>
java.lang.Object
repast.simphony.query.AbstractPropertyQuery<T>
repast.simphony.query.PropertyGreaterThan<T>
- All Implemented Interfaces:
Query<T>
Deprecated.
Query that returns any objects in a context with a specified property
whose value is greater than 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
ConstructorDescriptionPropertyGreaterThan
(Context<T> context, String propertyName, Number propertyValue) Deprecated.Creates a PropertyGreaterThan query to query the specified context for objects with the specified property where that property is greater than 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 if a numeric property is greater than some value.Methods inherited from class repast.simphony.query.AbstractPropertyQuery
getQueryPredicate, propertyNotFound, query, query
-
Constructor Details
-
PropertyGreaterThan
Deprecated.Creates a PropertyGreaterThan query to query the specified context for objects with the specified property where that property is greater than the specified value.- Parameters:
context
-propertyName
-propertyValue
-- Throws:
IllegalArgumentException
- if the specified property is not numeric.
-
-
Method Details
-
createPredicate
protected org.apache.commons.collections15.Predicate<T> createPredicate(Context<T> context, String propertyName) Deprecated.Creates a Predicate that tests if a numeric property is greater than some value.- Specified by:
createPredicate
in classAbstractPropertyQuery<T>
- Parameters:
context
-propertyName
-- Returns:
- a Predicate that tests if a numeric property is greater than some value.
-
Context.getObjectsAsStream(Class)
and the Java 8+ streaming APIStream
instead.