Package repast.simphony.query
Class InstanceOfQuery<T>
- java.lang.Object
-
- repast.simphony.query.InstanceOfQuery<T>
-
- All Implemented Interfaces:
Query<T>
public class InstanceOfQuery<T> extends Object implements Query<T>
Deprecated.UseContext.getObjectsAsStream(Class)
and the Java 8+ streaming APIStream
instead.Query that returns objects in a given context that are instances of the specified type.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description InstanceOfQuery(Context<T> context, Class type)
Deprecated.Creates an InstanceofQuery to query the specified context for objects of the specified type.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Iterable<T>
query()
Deprecated.Returns the result of the query.Iterable<T>
query(Iterable set)
Deprecated.Returns an iterable over the objects that are the result of the query and are in the passed in iterable.
-
-
-
Method Detail
-