public class DefaultCvTermComparator
extends Object
Default comparator for CvTerms.
If one CvTerm does not have any identifiers (MOD or MI, then the all identifiers), it will only compare the short names (case insensitive).
If both CvTerm objects have identifiers, it will look for at least one identical identifier using DefaultExternalIdentifierComparator and ignores all the other properties.
- Two CvTerms which are null are equals
- If the two external identifiers are set, use DefaultExternalIdentifierComparator
- When one of the CvTerms (or both CvTerms) do not have an external identifier, it compares the short names (case insensitive) which cannot be null
- Since:
18/12/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)