Class UnambiguousExactCuratedInteractionComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.InteractionComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.UnambiguousExactCuratedInteractionComparator
-
- All Implemented Interfaces:
Comparator<Interaction>
public class UnambiguousExactCuratedInteractionComparator extends InteractionComparator
Unambiguous exact curated Generic interaction comparator. Modelled interactions come first and then experimental interactions - It uses UnambiguousExactCuratedInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousExactCuratedModelledInteractionComparator to compare modelled interactions - It uses UnambiguousCuratedInteractionBaseComparator to compare basic interaction properties- Since:
05/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactCuratedInteractionComparator()
Creates a new UnambiguousExactCuratedInteractionComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Interaction interaction1, Interaction interaction2)
Use UnambiguousExactCuratedInteractionComparator to know if two interactions are equals.int
compare(Interaction interaction1, Interaction interaction2)
Modelled interactions come first and then experimental interactions - It uses UnambiguousExactCuratedInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousExactCuratedModelledInteractionComparator to compare modelled interactions - It uses UnambiguousCuratedInteractionBaseComparator to compare basic interaction propertiesUnambiguousExactCuratedInteractionEvidenceComparator
getExperimentalInteractionComparator()
Getter for the fieldexperimentalInteractionComparator
.UnambiguousCuratedInteractionBaseComparator
getInteractionBaseComparator()
Getter for the fieldinteractionBaseComparator
.UnambiguousExactCuratedModelledInteractionComparator
getModelledInteractionComparator()
Getter for the fieldmodelledInteractionComparator
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
getInteractionBaseComparator
public UnambiguousCuratedInteractionBaseComparator getInteractionBaseComparator()
Getter for the field
interactionBaseComparator
.- Overrides:
getInteractionBaseComparator
in classInteractionComparator
- Returns:
- a
Comparator
object.
-
getExperimentalInteractionComparator
public UnambiguousExactCuratedInteractionEvidenceComparator getExperimentalInteractionComparator()
Getter for the field
experimentalInteractionComparator
.- Overrides:
getExperimentalInteractionComparator
in classInteractionComparator
- Returns:
- a
InteractionEvidenceComparator
object.
-
getModelledInteractionComparator
public UnambiguousExactCuratedModelledInteractionComparator getModelledInteractionComparator()
Description copied from class:InteractionComparator
Getter for the field
modelledInteractionComparator
.- Overrides:
getModelledInteractionComparator
in classInteractionComparator
- Returns:
- a
ModelledInteractionComparator
object.
-
compare
public int compare(Interaction interaction1, Interaction interaction2)
Modelled interactions come first and then experimental interactions - It uses UnambiguousExactCuratedInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousExactCuratedModelledInteractionComparator to compare modelled interactions - It uses UnambiguousCuratedInteractionBaseComparator to compare basic interaction properties- Specified by:
compare
in interfaceComparator<Interaction>
- Overrides:
compare
in classInteractionComparator
- Parameters:
interaction1
- aInteraction
object.interaction2
- aInteraction
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(Interaction interaction1, Interaction interaction2)
Use UnambiguousExactCuratedInteractionComparator to know if two interactions are equals.- Parameters:
interaction1
- aInteraction
object.interaction2
- aInteraction
object.- Returns:
- true if the two interactions are equal
-
-