Class DefaultEntityBaseComparator


  • public class DefaultEntityBaseComparator
    extends Object
    Default entity comparator It will first compare the interactors using DefaultInteractorComparator. 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:
    16/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultEntityBaseComparator

        public DefaultEntityBaseComparator()
    • Method Detail

      • areEquals

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