Class DefaultCausalRelationshipComparator


  • public class DefaultCausalRelationshipComparator
    extends Object
    Default comparator for CausalRelationship It will first compare the relationType using DefaultCvTermComparator. If both relationTypes are identical, it will compare the target using DefaultEntityComparator
    Since:
    22/05/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultCausalRelationshipComparator

        public DefaultCausalRelationshipComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(CausalRelationship causalRelationship1,
                                        CausalRelationship causalRelationship2)
        Use DefaultCausalRelationshipComparator to know if two causalRelationShip are equals.
        Parameters:
        causalRelationship1 - a CausalRelationship object.
        causalRelationship2 - a CausalRelationship object.
        Returns:
        true if the two causalRelationShip are equal