Class CuratedModelledInteractionComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.ModelledInteractionComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.CuratedModelledInteractionComparator
-
- All Implemented Interfaces:
Comparator<ModelledInteraction>
- Direct Known Subclasses:
UnambiguousCuratedModelledInteractionComparator
,UnambiguousExactCuratedModelledInteractionComparator
public class CuratedModelledInteractionComparator extends ModelledInteractionComparator
Basic CuratedModelledInteraction comparator. It will use aComparator
of typeInteraction
to compare basic interaction properties. Then it will compare the modelledParticipants using CustomizableModelledParticipantComparator. Finally, it will compare the source of the modelledInteraction using AbstractCvTermComparator- Since:
31/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description CuratedModelledInteractionComparator(CustomizableModelledParticipantComparator participantComparator, Comparator<Interaction> interactionComparator, Comparator<CvTerm> sourceComparator)
Constructor for CuratedModelledInteractionComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ModelledInteraction modelledInteraction1, ModelledInteraction modelledInteraction2)
It will use aComparator
of typeInteraction
to compare basic interaction properties.Comparator<CvTerm>
getSourceComparator()
Getter for the fieldsourceComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interaction.ModelledInteractionComparator
getInteractionBaseComparator, getParticipantCollectionComparator
-
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
-
-
-
-
Constructor Detail
-
CuratedModelledInteractionComparator
public CuratedModelledInteractionComparator(CustomizableModelledParticipantComparator participantComparator, Comparator<Interaction> interactionComparator, Comparator<CvTerm> sourceComparator)
Constructor for CuratedModelledInteractionComparator.
- Parameters:
participantComparator
- : required to compare participantsinteractionComparator
- aComparator
object.sourceComparator
- aComparator
object.
-
-
Method Detail
-
getSourceComparator
public Comparator<CvTerm> getSourceComparator()
Getter for the field
sourceComparator
.- Returns:
- a
Comparator
object.
-
compare
public int compare(ModelledInteraction modelledInteraction1, ModelledInteraction modelledInteraction2)
It will use aComparator
of typeInteraction
to compare basic interaction properties. Then it will compare the modelledParticipants using CustomizableModelledParticipantComparator. Finally, it will compare the source of the modelledInteraction using AbstractCvTermComparator- Specified by:
compare
in interfaceComparator<ModelledInteraction>
- Overrides:
compare
in classModelledInteractionComparator
- Parameters:
modelledInteraction1
- aModelledInteraction
object.modelledInteraction2
- aModelledInteraction
object.- Returns:
- a int.
-
-