Class DefaultInteractionBaseComparator


  • public class DefaultInteractionBaseComparator
    extends Object
    Default Interaction comparator. It will first compare the interaction types using DefaultCvTermComparator. Then it will compare the rigids if both are set (case sensitive). Then it will compare the identifiers if both interactions have at least one identifier and it will look for at least one identical identifier using DefaultExternalIdentifierComparator. If one of the interactions does not have any identifiers, it will compare the shortnames (case sensitive, shortname null comes always after)
    Since:
    18/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultInteractionBaseComparator

        public DefaultInteractionBaseComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Interaction interaction1,
                                        Interaction interaction2)
        Use DefaultInteractionBaseComparator to know if two interactions are equals.
        Parameters:
        interaction1 - a Interaction object.
        interaction2 - a Interaction object.
        Returns:
        true if the two interactions are equal