Class 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 Detail

      • ClassFilter

        public ClassFilter()
    • 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: