Class UnambiguousExactInteractionComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.InteractionComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.UnambiguousExactInteractionComparator
-
- All Implemented Interfaces:
Comparator<Interaction>
public class UnambiguousExactInteractionComparator extends InteractionComparator
Unambiguous exact Generic interaction comparator. Modelled interactions come first and then experimental interactions - It uses UnambiguousExactInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousExactModelledInteractionComparator to compare modelled interactions - It uses UnambiguousInteractionBaseComparator to compare basic interaction properties- Since:
05/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactInteractionComparator()
Creates a new UnambiguousExactInteractionComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Interaction interaction1, Interaction interaction2)
Use UnambiguousExactInteractionComparator to know if two interactions are equals.int
compare(Interaction interaction1, Interaction interaction2)
Modelled interactions come first and then experimental interactions - It uses UnambiguousExactInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousExactModelledInteractionComparator to compare modelled interactions - It uses UnambiguousInteractionBaseComparator to compare basic interaction propertiesUnambiguousExactInteractionEvidenceComparator
getExperimentalInteractionComparator()
Getter for the fieldexperimentalInteractionComparator
.UnambiguousInteractionBaseComparator
getInteractionBaseComparator()
Getter for the fieldinteractionBaseComparator
.UnambiguousExactModelledInteractionComparator
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 UnambiguousInteractionBaseComparator getInteractionBaseComparator()
Getter for the field
interactionBaseComparator
.- Overrides:
getInteractionBaseComparator
in classInteractionComparator
- Returns:
- a
Comparator
object.
-
getExperimentalInteractionComparator
public UnambiguousExactInteractionEvidenceComparator getExperimentalInteractionComparator()
Getter for the field
experimentalInteractionComparator
.- Overrides:
getExperimentalInteractionComparator
in classInteractionComparator
- Returns:
- a
InteractionEvidenceComparator
object.
-
getModelledInteractionComparator
public UnambiguousExactModelledInteractionComparator 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 UnambiguousExactInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousExactModelledInteractionComparator to compare modelled interactions - It uses UnambiguousInteractionBaseComparator 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 UnambiguousExactInteractionComparator to know if two interactions are equals.- Parameters:
interaction1
- aInteraction
object.interaction2
- aInteraction
object.- Returns:
- true if the two interactions are equal
-
-