thredds.crawlabledataset.sorter
Class LexigraphicByNameSorter

java.lang.Object
  extended by thredds.crawlabledataset.sorter.LexigraphicByNameSorter
All Implemented Interfaces:
CrawlableDatasetSorter

public class LexigraphicByNameSorter
extends java.lang.Object
implements CrawlableDatasetSorter

Sort CrawlableDataset lists lexigraphically on the dataset name.

Since:
Nov 18, 2005 4:26:38 PM
Author:
edavis

Constructor Summary
LexigraphicByNameSorter(boolean increasingOrder)
           
 
Method Summary
 java.lang.Object getConfigObject()
          Return the configuration object.
 boolean isIncreasing()
           
 void sort(java.util.List datasetList)
          Sort the given CrawlableDataset list into the order defined by this sorter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexigraphicByNameSorter

public LexigraphicByNameSorter(boolean increasingOrder)
Method Detail

getConfigObject

public java.lang.Object getConfigObject()
Description copied from interface: CrawlableDatasetSorter
Return the configuration object.

Specified by:
getConfigObject in interface CrawlableDatasetSorter
Returns:
the configuration Object (may be null).

isIncreasing

public boolean isIncreasing()

sort

public void sort(java.util.List datasetList)
Description copied from interface: CrawlableDatasetSorter
Sort the given CrawlableDataset list into the order defined by this sorter.

Specified by:
sort in interface CrawlableDatasetSorter
Parameters:
datasetList - the CrawlableDataset list to be sorted.