Class DefaultExactEntityBaseComparator


  • public class DefaultExactEntityBaseComparator
    extends Object
    Default exact entity comparator It will first compare the interactors using DefaultExactInteractorComparator. If both interactors are the same, it will look at the stoichiometry (participant with lower stoichiometry will come first). This comparator will ignore all the other properties of an entity.
    Since:
    18/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultExactEntityBaseComparator

        public DefaultExactEntityBaseComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Entity participant1,
                                        Entity participant2,
                                        boolean ignoreInteractors)
        Use DefaultExactParticipantBaseComparator to know if two participants are equals.
        Parameters:
        participant1 - a Entity object.
        participant2 - a Entity object.
        ignoreInteractors - a boolean.
        Returns:
        true if the two entities are equal