Interface SizeFilter

All Superinterfaces:
Filter, FolderFilter

public interface SizeFilter extends FolderFilter
A folder comparison filter that excludes or includes files by size. Created with Filters.addSizeFilter(boolean, boolean, long, SizeUnit, String).
  • Method Details

    • getSize

      long getSize()
      Returns the size this filter compares files with, expressed in the SizeUnit the filter was created with.
      Returns:
      the size, in the unit of this filter
      Since:
      2.0
    • isLarger

      boolean isLarger()
      Answers whether this filter matches files larger than getSize(), or files that are not larger.
      Returns:
      true for "larger than", false for "not larger than"
      Since:
      2.0