Class DefaultOrganismComparator


  • public class DefaultOrganismComparator
    extends Object
    Default organism comparator. It will first look at the taxids. If taxIds are the same , it will look at the cell types using DefaultOrganismComparator. If the cell types are the same, it will look at the tissues using DefaultOrganismComparator. If the tissues are the same, it will look at the compartments using DefaultOrganismComparator. - Two organisms which are null are equals - The organism which is not null is before null.
    Since:
    15/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultOrganismComparator

        public DefaultOrganismComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Organism organism1,
                                        Organism organism2)
        Use DefaultOrganismComparator to know if two organism are equals.
        Parameters:
        organism1 - a Organism object.
        organism2 - a Organism object.
        Returns:
        true if the two organisms are equal