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 booleanaccept(MFile dataset)Tests if a specified MFile should be included in a file collection.longgetLastModifiedLimitInMillis()
-
-
-
Method Detail
-
accept
public boolean accept(MFile dataset)
Description copied from interface:MFileFilterTests if a specified MFile should be included in a file collection.- Specified by:
acceptin interfaceMFileFilter- Parameters:
dataset- the MFile- Returns:
trueif the mfile should be included in the file collection;falseotherwise.
-
getLastModifiedLimitInMillis
public long getLastModifiedLimitInMillis()
-
-