Class DefaultCuratedInteractionBaseComparator


  • public class DefaultCuratedInteractionBaseComparator
    extends Object
    Default comparator for curated interactions. It will first compare the basic properties of an interaction using DefaultInteractionBaseComparator. Then it will compare the created dates (null created dates always come after) Finally it will compare the updated date (null updated date always come after)
    Since:
    31/05/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultCuratedInteractionBaseComparator

        public DefaultCuratedInteractionBaseComparator()
    • Method Detail

      • areEquals

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