Class PropertyGreaterThan<T>

java.lang.Object
repast.simphony.query.AbstractPropertyQuery<T>
repast.simphony.query.PropertyGreaterThan<T>
All Implemented Interfaces:
Query<T>

public class PropertyGreaterThan<T> extends AbstractPropertyQuery<T>
Deprecated.
Use Context.getObjectsAsStream(Class) and the Java 8+ streaming API Stream instead.
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
  • Constructor Details

    • PropertyGreaterThan

      public PropertyGreaterThan(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.
      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 class AbstractPropertyQuery<T>
      Parameters:
      context -
      propertyName -
      Returns:
      a Predicate that tests if a numeric property is greater than some value.