Class DefaultInteractionBaseComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.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 Summary
Constructors Constructor Description DefaultInteractionBaseComparator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Interaction interaction1, Interaction interaction2)
Use DefaultInteractionBaseComparator to know if two interactions are equals.
-
-
-
Method Detail
-
areEquals
public static boolean areEquals(Interaction interaction1, Interaction interaction2)
Use DefaultInteractionBaseComparator to know if two interactions are equals.- Parameters:
interaction1
- aInteraction
object.interaction2
- aInteraction
object.- Returns:
- true if the two interactions are equal
-
-