Package noaa.coastwatch.io
Class AbstractReaderList
java.lang.Object
noaa.coastwatch.io.AbstractReaderList
- All Implemented Interfaces:
ReaderList
- Direct Known Subclasses:
OpendapReaderList
The
AbstractReaderList
class implements some of the
more universal methods for a ReaderList
.- Since:
- 3.2.1
- Author:
- Peter Hollemans
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getClosestIndex
(Date date) Get the index of the reader closest in start date to the specified date.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface noaa.coastwatch.io.ReaderList
getReader, getStartDate, getTransform, getVariable, size
-
Constructor Details
-
AbstractReaderList
public AbstractReaderList()
-
-
Method Details
-
getClosestIndex
Description copied from interface:ReaderList
Get the index of the reader closest in start date to the specified date.- Specified by:
getClosestIndex
in interfaceReaderList
- Parameters:
date
- the date to get the closest reader for.- Returns:
- the reader index or -1 if none are found.
-