Class ClassFilter
java.lang.Object
repast.simphony.engine.controller.ClassFilter
Takes a Class and returns true or false depending on whether or not the Class
passes the filter.
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Applies this filter to the specified class.static ClassFilter
getNotEqualsFilter
(Class<?>... classes) Gets a ClassFilter that filters based on whether or not the class passed to the filter is equal to one of the specified classes.
-
Constructor Details
-
ClassFilter
public ClassFilter()
-
-
Method Details
-
apply
Applies this filter to the specified class.- Parameters:
clazz
-- Returns:
- true if the class passes the filter otherwise false.
-
getNotEqualsFilter
Gets a ClassFilter that filters based on whether or not the class passed to the filter is equal to one of the specified classes. If the classes is empty or null, an always pass filter will be returned.- Parameters:
classes
-- Returns:
-