Class Finder.ExecJavaFilter

    • Field Detail

      • callable

        private final Finder.Callable callable
        The instance to be executed to decide whether a given file passes the filter invoking Finder.Callable.call(File). Besides filtering, other actions may be taken as side effect. Parameters are passed to the callable when creating the instance or later by a setter method, depending on the implementation.
    • Constructor Detail

      • ExecJavaFilter

        ExecJavaFilter​(Finder.Callable callable)
        Creates a java execution filter from the given Finder.Callable.
        Parameters:
        callable - The callable defining the filter.
    • Method Detail

      • pass

        public boolean pass​(java.io.File file)
        The given file passes this filter, i.e. this method returns true, if so does callable.
        Specified by:
        pass in class Finder.Filter