Package thredds.cataloggen.config
Class DatasetSorter
- java.lang.Object
-
- thredds.cataloggen.config.DatasetSorter
-
public class DatasetSorter extends Object
A description- Since:
- Apr 20, 2005 17:02:08 PM
-
-
Constructor Summary
Constructors Constructor Description DatasetSorter(boolean increasingOrder)
Sort datasets into lexigraphic order by dataset name in either increasing (increasingOrder=true) or decreasing (increasingOrder=false) order.DatasetSorter(Comparator invDatasetComparator)
Sort datasets according to the given java.util.Comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sortDatasets(List datasets)
void
sortDatasets(InvDataset collectionDs)
void
sortNestedDatasets(InvDataset collectionDs)
-
-
-
Constructor Detail
-
DatasetSorter
public DatasetSorter(boolean increasingOrder)
Sort datasets into lexigraphic order by dataset name in either increasing (increasingOrder=true) or decreasing (increasingOrder=false) order.- Parameters:
increasingOrder
- if true, datasets are sorted into increasing order, otherwise decreasing order.
-
DatasetSorter
public DatasetSorter(Comparator invDatasetComparator)
Sort datasets according to the given java.util.Comparator.- Parameters:
invDatasetComparator
- a java.util.Comparator that compares InvDataset objects.
-
-
Method Detail
-
sortDatasets
public void sortDatasets(InvDataset collectionDs)
-
sortDatasets
public void sortDatasets(List datasets)
-
sortNestedDatasets
public void sortNestedDatasets(InvDataset collectionDs)
-
-