edu.nrao.sss.model.source.sort
Class SourceNameSortKey
java.lang.Object
edu.nrao.sss.sort.SortKey<String>
edu.nrao.sss.sort.StringSortKey
edu.nrao.sss.model.source.sort.SourceNameSortKey
- All Implemented Interfaces:
- Orderable, Comparator<SourceCatalogEntry>
public class SourceNameSortKey
- extends StringSortKey
- implements Comparator<SourceCatalogEntry>
Sorts sources
based on their names.
Because this class is a SortKey
, you may configure its instances with
a particular SortOrder
. Because it is a StringSortKey
, you
may tell it to ignore differences in case. Finally, because it is a
Comparator
, you may use it for sorting collections on its own, or
place it in a CompoundComparator
to use as one of many keys in
a single sort.
The default values for this key's attributes are:
Version Info:
$Revision: 599 $ |
$Date: 2007-05-09 08:26:20 -0600 (Wed, 09 May 2007) $ |
$Author: dharland $ |
- Since:
- 2007-05-08
- Author:
- David M. Harland
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceNameSortKey
public SourceNameSortKey()
compare
public int compare(SourceCatalogEntry sce1,
SourceCatalogEntry sce2)
- Specified by:
compare
in interface Comparator<SourceCatalogEntry>
Copyright © 2009. All Rights Reserved.