Class ClassFilter
- java.lang.Object
-
- repast.simphony.engine.controller.ClassFilter
-
public abstract class ClassFilter extends Object
Takes a Class and returns true or false depending on whether or not the Class passes the filter.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description ClassFilter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
apply(Class<?> clazz)
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.
-
-
-
Method Detail
-
apply
public abstract boolean apply(Class<?> clazz)
Applies this filter to the specified class.- Parameters:
clazz
-- Returns:
- true if the class passes the filter otherwise false.
-
getNotEqualsFilter
public 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. If the classes is empty or null, an always pass filter will be returned.- Parameters:
classes
-- Returns:
-
-