Class UnambiguousInteractionComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.InteractionComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.UnambiguousInteractionComparator
-
- All Implemented Interfaces:
Comparator<Interaction>
public class UnambiguousInteractionComparator extends InteractionComparator
Unambiguous Generic interaction comparator. Modelled interactions come first and then experimental interactions - It uses UnambiguousInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousModelledInteractionComparator 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 UnambiguousInteractionComparator()
Creates a new UnambiguousInteractionComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Interaction interaction1, Interaction interaction2)
Use UnambiguousInteractionComparator to know if two interactions are equals.int
compare(Interaction interaction1, Interaction interaction2)
Modelled interactions come first, then experimental interactions.UnambiguousInteractionEvidenceComparator
getExperimentalInteractionComparator()
Getter for the fieldexperimentalInteractionComparator
.UnambiguousInteractionBaseComparator
getInteractionBaseComparator()
Getter for the fieldinteractionBaseComparator
.UnambiguousModelledInteractionComparator
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 UnambiguousInteractionEvidenceComparator getExperimentalInteractionComparator()
Getter for the field
experimentalInteractionComparator
.- Overrides:
getExperimentalInteractionComparator
in classInteractionComparator
- Returns:
- a
InteractionEvidenceComparator
object.
-
getModelledInteractionComparator
public UnambiguousModelledInteractionComparator getModelledInteractionComparator()
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, then experimental interactions. - It uses InteractionEvidenceComparator to compare experimental interactions - It uses ModelledInteractionComparator to compare modelled interactions - It uses AbstractInteractionBaseComparator to compare basic interaction properties Modelled interactions come first and then experimental interactions - It uses UnambiguousInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousModelledInteractionComparator 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 UnambiguousInteractionComparator to know if two interactions are equals.- Parameters:
interaction1
- aInteraction
object.interaction2
- aInteraction
object.- Returns:
- true if the two interactions are equal
-
-