Package repast.simphony.query
Class InstanceOfQuery<T>
java.lang.Object
repast.simphony.query.InstanceOfQuery<T>
- All Implemented Interfaces:
Query<T>
Deprecated.
Query that returns objects in a given context that are
instances of the specified type.
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionInstanceOfQuery
(Context<T> context, Class type) Deprecated.Creates an InstanceofQuery to query the specified context for objects of the specified type. -
Method Summary
-
Constructor Details
-
InstanceOfQuery
Deprecated.Creates an InstanceofQuery to query the specified context for objects of the specified type.- Parameters:
context
- the context to querytype
- the type to query for
-
-
Method Details
-
query
Deprecated.Returns the result of the query. -
query
Deprecated.Returns an iterable over the objects that are the result of the query and are in the passed in iterable. This allows queries to be chained together where the result of one query is passed into another.
-
Context.getObjectsAsStream(Class)
and the Java 8+ streaming APIStream
instead.