Class ClassFilters


  • public final class ClassFilters
    extends java.lang.Object
    Static factory methods for class filter types.
    Author:
    David M. Lloyd
    • Method Detail

      • acceptAll

        public static ClassFilter acceptAll()
        Get a filter which always returns true.
        Returns:
        the accept-all filter
      • rejectAll

        public static ClassFilter rejectAll()
        Get a filter which always returns false.
        Returns:
        the reject-all filter
      • fromResourcePathFilter

        public static ClassFilter fromResourcePathFilter​(PathFilter resourcePathFilter)
        Get a class filter which uses a resource path filter to filter classes.
        Parameters:
        resourcePathFilter - the resource path filter
        Returns:
        the class filter