thredds.inventory.filter
Class LastModifiedLimit

java.lang.Object
  extended by 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

Constructor Summary
LastModifiedLimit(long lastModifiedLimitInMillis)
          Constructor.
 
Method Summary
 boolean accept(MFile dataset)
          Tests if a specified MFile should be included in a file collection.
 long getLastModifiedLimitInMillis()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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.