Class RandomPathFilter

    • Field Detail

      • random

        protected Random random
      • extensions

        protected String[] extensions
      • maxPaths

        protected long maxPaths
    • Constructor Detail

      • RandomPathFilter

        public RandomPathFilter​(Random random,
                                String... extensions)
        Calls this(random, extensions, 0).
      • RandomPathFilter

        public RandomPathFilter​(Random random,
                                String[] extensions,
                                long maxPaths)
        Constructs an instance of the PathFilter.
        Parameters:
        random - object to use
        extensions - of files to keep
        maxPaths - max number of paths to return (0 == unlimited)
    • Method Detail

      • accept

        protected boolean accept​(String name)