Package thredds.crawlabledataset.sorter
Class LexigraphicByNameSorter
- java.lang.Object
-
- thredds.crawlabledataset.sorter.LexigraphicByNameSorter
-
- All Implemented Interfaces:
CrawlableDatasetSorter
public class LexigraphicByNameSorter extends Object implements CrawlableDatasetSorter
Sort CrawlableDataset lists lexicographically on the dataset name.- Since:
- Nov 18, 2005 4:26:38 PM
-
-
Constructor Summary
Constructors Constructor Description LexigraphicByNameSorter(boolean increasingOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetConfigObject()Return the configuration object.booleanisIncreasing()voidsort(List<CrawlableDataset> datasetList)Sort the given CrawlableDataset list into the order defined by this sorter.
-
-
-
Method Detail
-
getConfigObject
public Object getConfigObject()
Description copied from interface:CrawlableDatasetSorterReturn the configuration object.- Specified by:
getConfigObjectin interfaceCrawlableDatasetSorter- Returns:
- the configuration Object (may be null).
-
isIncreasing
public boolean isIncreasing()
-
sort
public void sort(List<CrawlableDataset> datasetList)
Description copied from interface:CrawlableDatasetSorterSort the given CrawlableDataset list into the order defined by this sorter.- Specified by:
sortin interfaceCrawlableDatasetSorter- Parameters:
datasetList- the CrawlableDataset list to be sorted.
-
-