Interface TimeFilter

All Superinterfaces:
Filter, FolderFilter

public interface TimeFilter extends FolderFilter
A folder comparison filter that excludes or includes files and folders by their last-modified time. Created with Filters.addTimeFilter(boolean, FolderFilter.Target, boolean, long, boolean, String).
  • Method Details

    • getTime

      long getTime()
      Returns time in milliseconds the meaning of which depends on the return value of isAbsolute().

      When isAbsolute() returns true, the time is a point in time, in milliseconds since January 1, 1970, 00:00:00 GMT; when it returns false, the time is a number of milliseconds before the moment the filter is applied.

      Returns:
      time in milliseconds
      Since:
      2.0
    • isAbsolute

      boolean isAbsolute()
      Answers how the value of getTime() is interpreted.
      Returns:
      true if getTime() is a point in time, in milliseconds since January 1, 1970, 00:00:00 GMT; false if it is a number of milliseconds before the moment the filter is applied
      Since:
      2.0
      See Also:
    • isExclude

      boolean isExclude()
      Answers whether this filter excludes or includes the resources it matches, as in "Exclude files older than 2 days".
      Returns:
      true for Exclude. false for Include.
      Since:
      2.0
    • isOlder

      boolean isOlder()
      Answers whether this filter matches older or newer resources, as in "Exclude files older than 2 days".
      Returns:
      true for older, false for newer
      Since:
      2.0