Class DefaultExactInteractionEvidenceComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.DefaultExactInteractionEvidenceComparator
-
public class DefaultExactInteractionEvidenceComparator extends Object
Default exact InteractionEvidenceComparator. It will first compare the basic interaction properties using DefaultInteractionBaseComparator. It will then compares the IMEx identifiers if both IMEx ids are set. If at least one IMEx id is not set, it will compare the negative properties. A negative interaction will come after a positive interaction. it will compare the experiment using DefaultExperimentComparator. If the experiments are the same, it will compare the participants using DefaultExactParticipantEvidenceComparator. it will compare the parameters using DefaultParameterComparator. If the parameters are the same, it will first compare the experimental variableParameters using VariableParameterValueSetComparator and then it will compare the inferred boolean value (Inferred interactions will always come after).- Since:
21/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultExactInteractionEvidenceComparator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(InteractionEvidence experimentalInteraction1, InteractionEvidence experimentalInteraction2)
Use DefaultExactInteractionEvidenceComparator to know if two experimental interactions are equals.
-
-
-
Method Detail
-
areEquals
public static boolean areEquals(InteractionEvidence experimentalInteraction1, InteractionEvidence experimentalInteraction2)
Use DefaultExactInteractionEvidenceComparator to know if two experimental interactions are equals.- Parameters:
experimentalInteraction1
- aInteractionEvidence
object.experimentalInteraction2
- aInteractionEvidence
object.- Returns:
- true if the two experimental interactions are equal
-
-