edu.nrao.sss.model.resource.sort
Class TelescopeBackendSortKey
java.lang.Object
edu.nrao.sss.sort.SortKey<String>
edu.nrao.sss.sort.StringSortKey
edu.nrao.sss.model.resource.sort.TelescopeBackendSortKey
- All Implemented Interfaces:
- Orderable, Comparator<Resource>
public class TelescopeBackendSortKey
- extends StringSortKey
- implements Comparator<Resource>
Sorts resources
based on their first TelescopeBackend.
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: 1710 $ |
$Date: 2008-11-14 11:54:07 -0700 (Fri, 14 Nov 2008) $ |
$Author: dharland $ |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TelescopeBackendSortKey
public TelescopeBackendSortKey()
compare
public int compare(Resource a,
Resource b)
- Specified by:
compare
in interface Comparator<Resource>
Copyright © 2009. All Rights Reserved.