thredds.crawlabledataset.sorter
Class LexigraphicByNameSorter

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

Constructor Summary
LexigraphicByNameSorter(boolean increasingOrder)
           
 
Method Summary
 Object getConfigObject()
          Return the configuration object.
 boolean isIncreasing()
           
 void sort(List<CrawlableDataset> 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 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(List<CrawlableDataset> 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.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.