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 Details

    • ClassFilter

      public ClassFilter()
  • Method Details

    • 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: