Package thredds.inventory.filter
Class LastModifiedLimit
- java.lang.Object
-
- thredds.inventory.filter.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 Summary
Constructors Constructor Description LastModifiedLimit(long lastModifiedLimitInMillis)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(MFile dataset)
Tests if a specified MFile should be included in a file collection.long
getLastModifiedLimitInMillis()
-
-
-
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 interfaceMFileFilter
- Parameters:
dataset
- the MFile- Returns:
true
if the mfile should be included in the file collection;false
otherwise.
-
getLastModifiedLimitInMillis
public long getLastModifiedLimitInMillis()
-
-