Class LastModifiedLimit

  • All Implemented Interfaces:
    MFileFilter

    public class LastModifiedLimit
    extends Object
    implements MFileFilter
    Accept datasets whose last modified date is at least the given amount of time in the past.
    Since:
    Jul 8, 2009
    • Constructor Detail

      • LastModifiedLimit

        public LastModifiedLimit​(long lastModifiedLimitInMillis)
        Constructor.
        Parameters:
        lastModifiedLimitInMillis - accept datasets whose lastModified() time is at least this many msecs in the past
    • Method Detail

      • accept

        public boolean accept​(MFile dataset)
        Description copied from interface: MFileFilter
        Tests if a specified MFile should be included in a file collection.
        Specified by:
        accept in interface MFileFilter
        Parameters:
        dataset - the MFile
        Returns:
        true if the mfile should be included in the file collection; false otherwise.
      • getLastModifiedLimitInMillis

        public long getLastModifiedLimitInMillis()