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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetClosestIndex(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, waitMethods inherited from interface noaa.coastwatch.io.ReaderList
getReader, getStartDate, getTransform, getVariable, size
-
Constructor Details
-
AbstractReaderList
public AbstractReaderList()
-
-
Method Details
-
getClosestIndex
Description copied from interface:ReaderListGet the index of the reader closest in start date to the specified date.- Specified by:
getClosestIndexin interfaceReaderList- Parameters:
date- the date to get the closest reader for.- Returns:
- the reader index or -1 if none are found.
-