public class DefaultXrefComparator
extends Object
Default Xref comparator
It compares first the databases and then the ids (case sensitive) but ignores the version.
To compare the databases, it looks first at the identifiers id if they exist, otherwise it looks at the database shortlabel only. Then it will
compare the qualifier.
To compare the qualifiers, it looks first at the identifiers id if they exist, otherwise it looks at the qualifier shortlabel only.
It will ignore the version
- Two xrefs which are null are equals
- The xref which is not null is before null.
- If both xref databases and ids are the same, compare the qualifiers.
- Since:
19/12/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)