Class DefaultAliasComparator


  • public class DefaultAliasComparator
    extends Object
    Default alias comparator. It will first compare alias types using DefaultCvTermComparator and then alias names (case sensitive) - Two aliases which are null are equals - The alias which is not null is before null. - If the alias types are not set, compares the names (case sensitive) - If both alias types are set, use DefaultCvTermComparator to compare the alias types. If they are equals, compares the names (case sensitive)
    Since:
    18/12/12
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultAliasComparator

        public DefaultAliasComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Alias alias1,
                                        Alias alias2)
        Use DefaultAliasComparator to know if two aliases are equals.
        Parameters:
        alias1 - a Alias object.
        alias2 - a Alias object.
        Returns:
        true if the two aliases are equal