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
- Author:
- edavis, jcaron
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LastModifiedLimit
public LastModifiedLimit(long lastModifiedLimitInMillis)
- Constructor.
- Parameters:
lastModifiedLimitInMillis
- accept datasets whose lastModified() time is at least this many msecs in the past
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 and only if the name should be
included in the file collection; false
otherwise.
getLastModifiedLimitInMillis
public long getLastModifiedLimitInMillis()
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.