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