Interface AttributeFilter

All Superinterfaces:
Filter, FolderFilter

public interface AttributeFilter extends FolderFilter
A folder comparison filter that excludes or includes files and folders with a given attribute, such as hidden or writable. Which Resource.Attributes are available depends on the operating system. Created with Filters.addAttributeFilter(boolean, Resource.Attribute, FolderFilter.Target, String).
  • Method Details

    • getAttribute

      Resource.Attribute getAttribute()
      Returns the resource attribute this filter is configured with.
      Returns:
      the Resource.Attribute associated with this filter.
      Since:
      2.0
      See Also:
    • getExclude

      boolean getExclude()
      Answers whether this is an exclusion or an inclusion filter.
      Returns:
      true if this is an exclusion filter; false otherwise.
      Since:
      2.0