Interface OptimizedFileFilter

All Superinterfaces:
GenericFileFilter

public interface OptimizedFileFilter extends GenericFileFilter
A filter for filtering file that is optimized for matching by name only.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(String name)
    Tests whether the specified file should be included (quick test using only file name)
    default boolean
    Tests whether the specified generic file should be included
  • Method Details

    • accept

      default boolean accept(GenericFile file)
      Description copied from interface: GenericFileFilter
      Tests whether the specified generic file should be included
      Specified by:
      accept in interface GenericFileFilter
      Parameters:
      file - the generic file to be tested
      Returns:
      true if and only if file should be included
    • accept

      Boolean accept(String name)
      Tests whether the specified file should be included (quick test using only file name)
      Parameters:
      name - the file name
      Returns:
      true if and only if file should be included, null to use the accept(GenericFile) method.